{"name":"@types/klaw","version":"3.0.7","license":"MIT","_id":"@types/klaw@3.0.7","maintainers":[{"name":"types","email":"ts-npm-types@microsoft.com"}],"contributors":[{"url":"https://github.com/mceachen","name":"Matthew McEachen","githubUsername":"mceachen"},{"url":"https://github.com/p4sca1","name":"Pascal Sthamer","githubUsername":"p4sca1"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/klaw","dist":{"shasum":"b1a2cf40d48bc5ded94441c11ff961b176ac0f8a","tarball":"http://registry-npm.ywwl.com/@types/klaw/download/@types/klaw-3.0.7.tgz","fileCount":5,"integrity":"sha512-ooZ+dVfTfg8RIUzwCBnHR6NirCB0amo1MNneUbL+Votca1H/eaMwkB31uDU9O6yKWNY5ngdYP3ywduOxm4KtMg==","signatures":[{"sig":"MEUCIQDAl57BrfBNH1z/e+eh2HUXNXoeFHtuHNuzT20uCdl9lgIgMyGK2watS7A4hbIKsS5gwGC7exUW/UdPC/7UCqkBepA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6356,"size":2232,"noattachment":false,"key":"/@types/klaw/-/@types/klaw-3.0.7.tgz"},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/klaw"},"description":"TypeScript definitions for klaw","directories":{},"dependencies":{"@types/node":"*"},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.1","_npmOperationalInternal":{"tmp":"tmp/klaw_3.0.7_1748878634552_0.8795630058377313","host":"s3://npm-registry-packages-npm-production"},"typesPublisherContentHash":"8270009821f9803344c68434369392b12c7d89d9eac94b2f33b0a2b373cc7630","readme":"# Installation\r\n> `npm install --save @types/klaw`\r\n\r\n# Summary\r\nThis package contains type definitions for klaw (https://github.com/jprichardson/node-klaw).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/klaw.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/klaw/index.d.ts)\r\n````ts\r\n/// <reference types=\"node\" />\n\ndeclare module \"klaw\" {\n    import * as fs from \"fs\";\n    import { Readable, ReadableOptions } from \"stream\";\n\n    function K(root: string, options?: K.Options): K.Walker;\n\n    namespace K {\n        interface Item {\n            path: string;\n            stats: fs.Stats;\n        }\n\n        type QueueMethod = \"shift\" | \"pop\";\n\n        interface Options extends ReadableOptions {\n            queueMethod?: QueueMethod | undefined;\n            pathSorter?: ((pathA: string, pathB: string) => number) | undefined;\n            fs?: any; // fs or mock-fs\n            filter?: ((path: string) => boolean) | undefined;\n            depthLimit?: number | undefined;\n            preserveSymlinks?: boolean | undefined;\n        }\n\n        type Event = \"close\" | \"data\" | \"end\" | \"error\" | \"pause\" | \"readable\" | \"resume\";\n\n        interface Walker extends Readable, AsyncIterable<Item> {\n            on(event: Event, listener: Function): this;\n            on(event: \"close\", listener: () => void): this;\n            on(event: \"data\", listener: (item: Item) => void): this;\n            on(event: \"end\", listener: () => void): this;\n            on(event: \"readable\", listener: () => void): this;\n            on(event: \"error\", listener: (err: Error) => void): this;\n            read(): Item;\n            [Symbol.asyncIterator](): AsyncIteratorObject<Item, any, any>;\n        }\n    }\n\n    export = K;\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Mon, 28 Sep 2026 23:34:57 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n\r\n# Credits\r\nThese definitions were written by [Matthew McEachen](https://github.com/mceachen), and [Pascal Sthamer](https://github.com/p4sca1).\r\n","publish_time":1748878634725,"_cnpm_publish_time":1748878634725,"dist-tags":{"latest":"3.0.8","ts2.0":"3.0.0","ts2.1":"3.0.0","ts2.2":"3.0.0","ts2.3":"3.0.0","ts2.4":"3.0.0","ts2.5":"3.0.0","ts2.6":"3.0.0","ts2.7":"3.0.0","ts2.8":"3.0.1","ts2.9":"3.0.1","ts3.0":"3.0.1","ts3.1":"3.0.1","ts3.2":"3.0.1","ts3.3":"3.0.1","ts3.4":"3.0.1","ts3.5":"3.0.1","ts3.6":"3.0.2","ts3.7":"3.0.3","ts3.8":"3.0.3","ts3.9":"3.0.3","ts4.0":"3.0.3","ts4.1":"3.0.3","ts4.2":"3.0.3","ts4.3":"3.0.3","ts4.4":"3.0.3","ts4.5":"3.0.6","ts4.6":"3.0.6","ts4.7":"3.0.6","ts4.8":"3.0.6","ts4.9":"3.0.6","ts5.0":"3.0.6","ts5.1":"3.0.7","ts5.2":"3.0.7","ts5.3":"3.0.7","ts5.4":"3.0.7","ts5.5":"3.0.7","ts5.6":"3.0.8","ts5.7":"3.0.8","ts5.8":"3.0.8","ts5.9":"3.0.8","ts6.0":"3.0.8","ts7.0":"3.0.8","ts7.1":"3.0.8"}}