8889841cREADME.md000066600000001330150476761730006044 0ustar00# Installation > `npm install --save @types/glob` # Summary This package contains type definitions for Glob (https://github.com/isaacs/node-glob). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/glob. ### Additional Details * Last updated: Tue, 19 Oct 2021 22:01:22 GMT * Dependencies: [@types/minimatch](https://npmjs.com/package/@types/minimatch), [@types/node](https://npmjs.com/package/@types/node) * Global values: none # Credits These definitions were written by [vvakame](https://github.com/vvakame), [voy](https://github.com/voy), [Klaus Meinhardt](https://github.com/ajafff), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). index.d.ts000066600000006604150476761730006477 0ustar00// Type definitions for Glob 7.2 // Project: https://github.com/isaacs/node-glob // Definitions by: vvakame // voy // Klaus Meinhardt // Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import events = require("events"); import minimatch = require("minimatch"); import fs = require("fs"); declare function G(pattern: string, cb: (err: Error | null, matches: string[]) => void): G.IGlob; declare function G(pattern: string, options: G.IOptions, cb: (err: Error | null, matches: string[]) => void): G.IGlob; declare namespace G { function __promisify__(pattern: string, options?: IOptions): Promise; function sync(pattern: string, options?: IOptions): string[]; function hasMagic(pattern: string, options?: IOptions): boolean; let glob: typeof G; let Glob: IGlobStatic; let GlobSync: IGlobSyncStatic; interface IOptions extends minimatch.IOptions { cwd?: string | undefined; root?: string | undefined; dot?: boolean | undefined; nomount?: boolean | undefined; mark?: boolean | undefined; nosort?: boolean | undefined; stat?: boolean | undefined; silent?: boolean | undefined; strict?: boolean | undefined; cache?: { [path: string]: boolean | 'DIR' | 'FILE' | ReadonlyArray } | undefined; statCache?: { [path: string]: false | { isDirectory(): boolean} | undefined } | undefined; symlinks?: { [path: string]: boolean | undefined } | undefined; realpathCache?: { [path: string]: string } | undefined; sync?: boolean | undefined; nounique?: boolean | undefined; nonull?: boolean | undefined; debug?: boolean | undefined; nobrace?: boolean | undefined; noglobstar?: boolean | undefined; noext?: boolean | undefined; nocase?: boolean | undefined; matchBase?: any; nodir?: boolean | undefined; ignore?: string | ReadonlyArray | undefined; follow?: boolean | undefined; realpath?: boolean | undefined; nonegate?: boolean | undefined; nocomment?: boolean | undefined; absolute?: boolean | undefined; fs?: typeof fs; } interface IGlobStatic extends events.EventEmitter { new (pattern: string, cb?: (err: Error | null, matches: string[]) => void): IGlob; new (pattern: string, options: IOptions, cb?: (err: Error | null, matches: string[]) => void): IGlob; prototype: IGlob; } interface IGlobSyncStatic { new (pattern: string, options?: IOptions): IGlobBase; prototype: IGlobBase; } interface IGlobBase { minimatch: minimatch.IMinimatch; options: IOptions; aborted: boolean; cache: { [path: string]: boolean | 'DIR' | 'FILE' | ReadonlyArray }; statCache: { [path: string]: false | { isDirectory(): boolean; } | undefined }; symlinks: { [path: string]: boolean | undefined }; realpathCache: { [path: string]: string }; found: string[]; } interface IGlob extends IGlobBase, events.EventEmitter { pause(): void; resume(): void; abort(): void; } } export = G; LICENSE000066600000002165150476761730005601 0ustar00 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE package.json000066600000002377150476761730007067 0ustar00{ "name": "@types/glob", "version": "7.2.0", "description": "TypeScript definitions for Glob", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/glob", "license": "MIT", "contributors": [ { "name": "vvakame", "url": "https://github.com/vvakame", "githubUsername": "vvakame" }, { "name": "voy", "url": "https://github.com/voy", "githubUsername": "voy" }, { "name": "Klaus Meinhardt", "url": "https://github.com/ajafff", "githubUsername": "ajafff" }, { "name": "Piotr Błażejewicz", "url": "https://github.com/peterblazejewicz", "githubUsername": "peterblazejewicz" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/glob" }, "scripts": {}, "dependencies": { "@types/minimatch": "*", "@types/node": "*" }, "typesPublisherContentHash": "436848b740c6ebcf1bfea5b5542b494eb73ed390b43a18c3dffa26ce9bad0aa8", "typeScriptVersion": "3.7" }