{"_id":"@types/loader-runner","_rev":"2803544","name":"@types/loader-runner","description":"TypeScript definitions for loader-runner","dist-tags":{"latest":"2.2.4","ts2.0":"2.2.3","ts2.1":"2.2.3","ts2.2":"2.2.3","ts2.3":"2.2.3","ts2.4":"2.2.3","ts2.5":"2.2.3","ts2.6":"2.2.3","ts2.7":"2.2.3","ts2.8":"2.2.3","ts2.9":"2.2.3","ts3.0":"2.2.3","ts3.1":"2.2.3","ts3.2":"2.2.3","ts3.3":"2.2.3","ts3.4":"2.2.3","ts3.5":"2.2.3","ts3.6":"2.2.4","ts3.7":"2.2.4","ts3.8":"2.2.4","ts3.9":"2.2.4","ts4.0":"2.2.4","ts4.1":"2.2.4","ts4.2":"2.2.4","ts4.3":"2.2.4","ts4.4":"2.2.4","ts4.5":"2.2.4","ts4.6":"2.2.4","ts4.7":"2.2.4","ts4.8":"2.2.4","ts4.9":"2.2.4"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:22:26.000Z","created":"2016-11-03T17:43:16.235Z","2.2.4":"2021-07-06T22:10:25.287Z","2.2.3":"2017-08-21T21:57:48.687Z","2.2.2":"2016-12-23T14:16:05.165Z","2.2.1":"2016-11-10T12:27:55.964Z","2.2.0":"2016-11-03T17:43:16.235Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/loader-runner"},"versions":{"2.2.4":{"name":"@types/loader-runner","version":"2.2.4","description":"TypeScript definitions for loader-runner","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner","license":"MIT","contributors":[{"name":"e-cloud","url":"https://github.com/e-cloud","githubUsername":"e-cloud"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/loader-runner"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"5be1f2e8efc3bee114ffdb957a240bca04e2cd29755b9510ca96299e8c4cb6f7","typeScriptVersion":"3.6","_id":"@types/loader-runner@2.2.4","dist":{"shasum":"42f21c1fe4a1fbc34100857a64db76450cc2ea2b","size":2075,"noattachment":false,"key":"/@types/loader-runner/-/@types/loader-runner-2.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/loader-runner/download/@types/loader-runner-2.2.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loader-runner_2.2.4_1625609425138_0.42900693191893824"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:36:05.427Z","publish_time":1625609425287,"_cnpm_publish_time":1625609425287},"2.2.3":{"name":"@types/loader-runner","version":"2.2.3","description":"TypeScript definitions for loader-runner","license":"MIT","contributors":[{"name":"e-cloud","url":"https://github.com/e-cloud"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"0dc930c4fbd0af94066c36a39bd7421c71e5366e0ab0d3f1b133b2e49426c361","typeScriptVersion":"2.0","_id":"@types/loader-runner@2.2.3","dist":{"shasum":"c094be7fa7a29ceed61e489e1d6cd50f520a1edb","size":1957,"noattachment":false,"key":"/@types/loader-runner/-/@types/loader-runner-2.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/loader-runner/download/@types/loader-runner-2.2.3.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loader-runner-2.2.3.tgz_1503352668597_0.40479903970845044"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:36:05.315Z","publish_time":1503352668687,"_cnpm_publish_time":1503352668687},"2.2.2":{"name":"@types/loader-runner","version":"2.2.2","description":"TypeScript definitions for loader-runner","license":"MIT","author":"e-cloud <http://github.com/e-cloud>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"peerDependencies":{},"typesPublisherContentHash":"a99c10ab7c3a91d75f9381923fd9933f311792bbee8f7a3c09ba2a9079855481","typeScriptVersion":"2.0","_id":"@types/loader-runner@2.2.2","dist":{"shasum":"d5127e5a6c61af203ea162abb64666d1ee34c58e","size":1453,"noattachment":false,"key":"/@types/loader-runner/-/@types/loader-runner-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/loader-runner/download/@types/loader-runner-2.2.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/loader-runner-2.2.2.tgz_1482502563050_0.7277662374544889"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:36:04.447Z","publish_time":1482502565165,"_cnpm_publish_time":1482502565165},"2.2.1":{"name":"@types/loader-runner","version":"2.2.1","description":"TypeScript definitions for loader-runner v2.2.0","license":"MIT","author":"e-cloud <http://github.com/e-cloud>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"peerDependencies":{},"typings":"index.d.ts","typesPublisherContentHash":"085eab842cce2f490df695f6299ecb6e623fbbba21ebab266f7b1c66d10e8c75","_id":"@types/loader-runner@2.2.1","dist":{"shasum":"493eef11463eb36d3e5946b67d3b7831f65b5ece","size":1219,"noattachment":false,"key":"/@types/loader-runner/-/@types/loader-runner-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/loader-runner/download/@types/loader-runner-2.2.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/loader-runner-2.2.1.tgz_1478780874149_0.9925052819307894"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:36:02.780Z","publish_time":1478780875964,"_cnpm_publish_time":1478780875964},"2.2.0":{"name":"@types/loader-runner","version":"2.2.0","description":"TypeScript definitions for loader-runner v2.2.0","license":"MIT","author":"e-cloud <http://github.com/e-cloud>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"peerDependencies":{},"typings":"index.d.ts","typesPublisherContentHash":"3cb3ef6052b658c67ba8613824f9e3804bb263f2c5bc2b9b88c3197660394bfa","_id":"@types/loader-runner@2.2.0","dist":{"shasum":"6028d241665df0cba922a906ee44cb65cb0b222c","size":1223,"noattachment":false,"key":"/@types/loader-runner/-/@types/loader-runner-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/loader-runner/download/@types/loader-runner-2.2.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/loader-runner-2.2.0.tgz_1478194994690_0.07073911256156862"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T07:36:01.083Z","publish_time":1478194996235,"_cnpm_publish_time":1478194996235}},"readme":"# Installation\r\n> `npm install --save @types/loader-runner`\r\n\r\n# Summary\r\nThis package contains type definitions for loader-runner (https://github.com/webpack/loader-runner.git).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner/index.d.ts)\r\n````ts\r\n// Type definitions for loader-runner v2.2.0\n// Project: https://github.com/webpack/loader-runner.git\n// Definitions by: e-cloud <https://github.com/e-cloud>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference types=\"node\" />\n\nexport interface Loader {\n    path: string;\n    query: string;\n    request: string;\n    options: any;\n    normal: null | ((request: string) => string);\n    pitch: null | ((request: string) => string);\n    raw: string;\n    data: any;\n    pitchExecuted: boolean;\n    normalExecuted: boolean;\n}\n\nexport interface RunLoaderOption {\n    resource: string;\n    loaders: any[];\n    context: any;\n    readResource: (\n        filename: string,\n        callback: (err: NodeJS.ErrnoException | null, data: Buffer | null) => void\n    ) => void;\n}\n\nexport interface RunLoaderResult {\n    result?: (Buffer | null)[] | undefined;\n    resourceBuffer?: Buffer | null | undefined;\n    cacheable: boolean;\n    fileDependencies: string[];\n    contextDependencies: string[];\n}\n\nexport interface ExtendedLoaderContext {\n    context: string | null;\n    loaderIndex: number;\n    loaders: Loader[];\n    resourcePath: string | undefined;\n    resourceQuery: string | undefined;\n    async: (() => (() => void) | undefined) | null;\n    callback: (() => void) | null;\n    cacheable: (flag: boolean) => void;\n    dependency: (file: string) => void;\n    addDependency: (file: string) => void;\n    addContextDependency: (context: string) => void;\n    getDependencies: () => string[];\n    getContextDependencies: () => string[];\n    clearDependencies: () => void;\n    resource: string;\n    request: string;\n    remainingRequest: string;\n    currentRequest: string;\n    previousRequest: string;\n    query: {\n        [key: string]: any;\n    } | string;\n    data: any;\n}\n\nexport function getContext(resource: string): string;\n\nexport function runLoaders(\n    options: RunLoaderOption,\n    callback: (err: NodeJS.ErrnoException | null, result: RunLoaderResult) => any\n): void;\n\n\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 22:02:42 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [e-cloud](https://github.com/e-cloud).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/loader-runner","license":"MIT"}