mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
305 B
TypeScript
14 lines
305 B
TypeScript
import findDown = require('find-down');
|
|
|
|
findDown('unicorn.png').then(file => {
|
|
file; // $ExpectType string | null
|
|
});
|
|
|
|
findDown(['unicorn.png']).then(file => {
|
|
file; // $ExpectType string | null
|
|
});
|
|
|
|
findDown('unicorn.png', { cwd: '.' }).then(file => {
|
|
file; // $ExpectType string | null
|
|
});
|