@types/linesert
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/linesert

Summary

This package contains type definitions for linesert (https://github.com/jasonbellamy/linesert).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/linesert.

index.d.ts

/// <reference types="node" />
import { PathLike } from "fs";

declare function linesert(path: PathLike | number): typeof linesert;

declare namespace linesert {
    function beforeLine(lineIndex: number): typeof linesert;
    function afterLine(lineIndex: number): typeof linesert;
    function insert(
        content: string | string[],
        callback?: (err: NodeJS.ErrnoException | null, result: string) => void,
    ): void;
}

export = linesert;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/node

Credits

These definitions were written by AlanWalk.

/@types/linesert/

    Package Sidebar

    Install

    npm i @types/linesert

    Weekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    3.51 kB

    Total Files

    5

    Last publish

    Collaborators

    • types