@types/loader-runner
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -13,4 +13,4 @@ // Type definitions for loader-runner v2.2.0 | ||
options: any; | ||
normal: any; | ||
pitch: any; | ||
normal: null | ((request: string) => string); | ||
pitch: null | ((request: string) => string); | ||
raw: string; | ||
@@ -22,4 +22,2 @@ data: any; | ||
export function getContext(resource: string): string; | ||
export interface RunLoaderOption { | ||
@@ -29,10 +27,49 @@ resource: string; | ||
context: any; | ||
readResource: (filename: string, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void) => void; | ||
readResource: ( | ||
filename: string, | ||
callback: (err: NodeJS.ErrnoException | null, data: Buffer | null) => void | ||
) => void; | ||
} | ||
export interface RunLoaderResult { | ||
result?: (Buffer | null)[]; | ||
resourceBuffer?: Buffer | null; | ||
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: any) => any | ||
callback: (err: NodeJS.ErrnoException | null, result: RunLoaderResult) => any | ||
): void; | ||
{ | ||
"name": "@types/loader-runner", | ||
"version": "2.2.1", | ||
"description": "TypeScript definitions for loader-runner v2.2.0", | ||
"version": "2.2.2", | ||
"description": "TypeScript definitions for loader-runner", | ||
"license": "MIT", | ||
@@ -17,4 +17,4 @@ "author": "e-cloud <http://github.com/e-cloud>", | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "085eab842cce2f490df695f6299ecb6e623fbbba21ebab266f7b1c66d10e8c75" | ||
"typesPublisherContentHash": "a99c10ab7c3a91d75f9381923fd9933f311792bbee8f7a3c09ba2a9079855481", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,10 +5,9 @@ # Installation | ||
# Summary | ||
This package contains type definitions for loader-runner v2.2.0 (http://github.com/webpack/loader-runner.git). | ||
This package contains type definitions for loader-runner (http://github.com/webpack/loader-runner.git). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/loader-runner | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/loader-runner | ||
Additional Details | ||
* Last updated: Thu, 10 Nov 2016 12:27:28 GMT | ||
* File structure: ProperModule | ||
* Last updated: Fri, 23 Dec 2016 14:14:47 GMT | ||
* Library Dependencies: node | ||
@@ -15,0 +14,0 @@ * Module Dependencies: none |
{ | ||
"authors": "e-cloud <http://github.com/e-cloud>", | ||
"definitionFilename": "index.d.ts", | ||
"libraryDependencies": [ | ||
@@ -10,8 +9,8 @@ "node" | ||
"libraryMinorVersion": 2, | ||
"libraryName": "loader-runner v2.2.0", | ||
"typeScriptVersion": "2.0", | ||
"libraryName": "loader-runner", | ||
"typingsPackageName": "loader-runner", | ||
"projectName": "http://github.com/webpack/loader-runner.git", | ||
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
"sourceBranch": "types-2.0", | ||
"kind": "ProperModule", | ||
"sourceBranch": "master", | ||
"globals": [], | ||
@@ -25,3 +24,3 @@ "declaredModules": [ | ||
"hasPackageJson": false, | ||
"contentHash": "085eab842cce2f490df695f6299ecb6e623fbbba21ebab266f7b1c66d10e8c75" | ||
"contentHash": "a99c10ab7c3a91d75f9381923fd9933f311792bbee8f7a3c09ba2a9079855481" | ||
} |
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
3878
86
18