@types/falafel
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -1,9 +0,24 @@ | ||
// Type definitions for falafel 2.1 | ||
// 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 | ||
declare function falafel(src: string, opts: ((...args: any[]) => void) | object, fn?: (...args: any[]) => void): string; | ||
/// <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; |
{ | ||
"name": "@types/falafel", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "TypeScript definitions for falafel", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falafel", | ||
"license": "MIT", | ||
@@ -11,6 +12,11 @@ "contributors": [ | ||
"githubUsername": "delprzemo" | ||
}, | ||
{ | ||
"name": "leumasme", | ||
"url": "https://github.com/leumasme", | ||
"githubUsername": "leumasme" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -22,5 +28,7 @@ "type": "git", | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "8e0d3845138cd880e63b5508a72e7da45448474eb927cc79de43da3cc131ccb2", | ||
"typeScriptVersion": "2.8" | ||
"dependencies": { | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "d2765f6542c4d430361819f856361c81514397be1ae1e7cc7f673b28fd9aa576", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,13 +5,41 @@ # Installation | ||
# Summary | ||
This package contains type definitions for falafel ( https://github.com/substack/node-falafel ). | ||
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 | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falafel. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falafel/index.d.ts) | ||
````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: Tue, 12 Mar 2019 17:54:34 GMT | ||
* Dependencies: none | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 29 Jul 2021 13:31:24 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Przemysław Struciński <https://github.com/delprzemo>. | ||
These definitions were written by [Przemysław Struciński](https://github.com/delprzemo), and [leumasme](https://github.com/leumasme). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4604
24
0
45
0
1
+ Added@types/node@*
+ Added@types/node@22.9.0(transitive)
+ Addedundici-types@6.19.8(transitive)