@types/loader-runner
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -32,4 +32,4 @@ // Type definitions for loader-runner v2.2.0 | ||
export interface RunLoaderResult { | ||
result?: (Buffer | null)[]; | ||
resourceBuffer?: Buffer | null; | ||
result?: (Buffer | null)[] | undefined; | ||
resourceBuffer?: Buffer | null | undefined; | ||
cacheable: boolean; | ||
@@ -36,0 +36,0 @@ fileDependencies: string[]; |
{ | ||
"name": "@types/loader-runner", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "TypeScript definitions for loader-runner", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner", | ||
"license": "MIT", | ||
@@ -9,9 +10,12 @@ "contributors": [ | ||
"name": "e-cloud", | ||
"url": "https://github.com/e-cloud" | ||
"url": "https://github.com/e-cloud", | ||
"githubUsername": "e-cloud" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/loader-runner" | ||
}, | ||
@@ -22,4 +26,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "0dc930c4fbd0af94066c36a39bd7421c71e5366e0ab0d3f1b133b2e49426c361", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "5be1f2e8efc3bee114ffdb957a240bca04e2cd29755b9510ca96299e8c4cb6f7", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,10 +8,86 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner/index.d.ts) | ||
````ts | ||
// Type definitions for loader-runner v2.2.0 | ||
// Project: https://github.com/webpack/loader-runner.git | ||
// Definitions by: e-cloud <https://github.com/e-cloud> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 21:55:03 GMT | ||
* Dependencies: node | ||
/// <reference types="node" /> | ||
export interface Loader { | ||
path: string; | ||
query: string; | ||
request: string; | ||
options: any; | ||
normal: null | ((request: string) => string); | ||
pitch: null | ((request: string) => string); | ||
raw: string; | ||
data: any; | ||
pitchExecuted: boolean; | ||
normalExecuted: boolean; | ||
} | ||
export interface RunLoaderOption { | ||
resource: string; | ||
loaders: any[]; | ||
context: any; | ||
readResource: ( | ||
filename: string, | ||
callback: (err: NodeJS.ErrnoException | null, data: Buffer | null) => void | ||
) => void; | ||
} | ||
export interface RunLoaderResult { | ||
result?: (Buffer | null)[] | undefined; | ||
resourceBuffer?: Buffer | null | undefined; | ||
cacheable: boolean; | ||
fileDependencies: string[]; | ||
contextDependencies: string[]; | ||
} | ||
export interface ExtendedLoaderContext { | ||
context: string | null; | ||
loaderIndex: number; | ||
loaders: Loader[]; | ||
resourcePath: string | undefined; | ||
resourceQuery: string | undefined; | ||
async: (() => (() => void) | undefined) | null; | ||
callback: (() => void) | null; | ||
cacheable: (flag: boolean) => void; | ||
dependency: (file: string) => void; | ||
addDependency: (file: string) => void; | ||
addContextDependency: (context: string) => void; | ||
getDependencies: () => string[]; | ||
getContextDependencies: () => string[]; | ||
clearDependencies: () => void; | ||
resource: string; | ||
request: string; | ||
remainingRequest: string; | ||
currentRequest: string; | ||
previousRequest: string; | ||
query: { | ||
[key: string]: any; | ||
} | string; | ||
data: any; | ||
} | ||
export function getContext(resource: string): string; | ||
export function runLoaders( | ||
options: RunLoaderOption, | ||
callback: (err: NodeJS.ErrnoException | null, result: RunLoaderResult) => any | ||
): void; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 22:02:42 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by e-cloud <https://github.com/e-cloud>. | ||
These definitions were written by [e-cloud](https://github.com/e-cloud). |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6659
0
93