mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-12 18:57:05 +00:00
26 lines
694 B
TypeScript
26 lines
694 B
TypeScript
import gs = require('glob-stream');
|
|
|
|
var read: NodeJS.ReadableStream;
|
|
|
|
// Types
|
|
var strPredicate: gs.UniqueByStringPredicate = 'base';
|
|
var fnPredicate: gs.UniqueByFunctionPredicate = (entry) => entry.path;
|
|
|
|
// Base cases
|
|
read = gs('xx');
|
|
read = gs('xx', {});
|
|
read = gs(['xx'], {});
|
|
|
|
// Package options
|
|
read = gs(['xx'], { allowEmpty: true });
|
|
read = gs(['xx'], { base: 'xx' });
|
|
read = gs(['xx'], { cwdbase: true });
|
|
read = gs(['xx'], { uniqueBy: 'path' });
|
|
read = gs(['xx'], { uniqueBy: 'base' });
|
|
read = gs(['xx'], { uniqueBy: 'cwd' });
|
|
read = gs(['xx'], { uniqueBy: (entry: gs.Entry) => entry.path });
|
|
|
|
// Glob options
|
|
read = gs(['xx'], { root: 'root' });
|
|
read = gs(['xx'], { debug: true });
|