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.