DefinitelyTyped/types/npm-paths/npm-paths-tests.ts
2018-12-26 00:37:52 +01:00

6 lines
178 B
TypeScript

import paths = require('npm-paths');
paths(); // $ExpectType string[]
paths('some/directory'); // $ExpectType string[]
paths({ cwd: 'some/directory' }); // $ExpectType string[]