Installation
npm install --save @types/falafel
Summary
This package contains type definitions for falafel (https://github.com/substack/node-falafel).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falafel.
interface OptionsObject {
parser: any;
[key: number]: any;
[key: string]: any;
}
interface FullOptionsObject extends OptionsObject {
src: string;
}
type WalkerFunction = (nodeOrChild: any, nodeOrNull: any) => void;
interface Result {
chunks: any[];
toString: () => string;
inspect: () => string;
}
declare function falafel(src: string | Buffer | FullOptionsObject, fn: WalkerFunction): Result;
declare function falafel(src: string | Buffer, opts: OptionsObject, fn: WalkerFunction): Result;
export = falafel;
Additional Details
- Last updated: Wed, 18 Oct 2023 01:17:34 GMT
- Dependencies: @types/node
Credits
These definitions were written by Przemysław Struciński, and leumasme.