2.2.2 • Published 7 months ago

@types/falafel v2.2.2

Weekly downloads
5,415
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for falafel 2.2
// Project: https://github.com/substack/node-falafel
// Definitions by: Przemysław Struciński <https://github.com/delprzemo>
//                 leumasme <https://github.com/leumasme>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <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: Thu, 29 Jul 2021 13:31:24 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

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