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

2.2.2 • Public • Published

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.

index.d.ts

/// <reference types="node" />
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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Przemysław Struciński, and leumasme.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/falafel

Weekly Downloads

5,205

Version

2.2.2

License

MIT

Unpacked Size

3.95 kB

Total Files

5

Last publish

Collaborators

  • types