mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import copy = require('copy');
|
|
import File = require('vinyl');
|
|
|
|
copy.each(['a', 'b'], '.', { cwd: '..' }, () => {});
|
|
copy.each(['a', 'b'], '.', { cwd: '..' }, (error, files) => {
|
|
error; // $ExpectType Error | null
|
|
files; // $ExpectType File[] | undefined
|
|
});
|
|
copy.each(['a', 'b'], '.', () => {});
|
|
copy.each(['a', 'b'], '.', (error, files) => {
|
|
error; // $ExpectType Error | null
|
|
files; // $ExpectType File[] | undefined
|
|
});
|
|
|
|
copy.one('a', '.', { cwd: '..' }, () => {});
|
|
copy.one('a', '.', { cwd: '..' }, (error, files) => {
|
|
error; // $ExpectType Error | null
|
|
files; // $ExpectType File[] | undefined
|
|
});
|
|
copy.one('a', '.', () => {});
|
|
copy.one('a', '.', (error, files) => {
|
|
error; // $ExpectType Error | null
|
|
files; // $ExpectType File[] | undefined
|
|
});
|
|
|
|
copy(['a', 'b'], '.', { cwd: '..' }, () => {});
|
|
copy(['a', 'b'], '.', { cwd: '..' }, (error, files) => {
|
|
error; // $ExpectType Error | null
|
|
files; // $ExpectType File[] | undefined
|
|
});
|
|
copy(['a', 'b'], '.', () => {});
|
|
copy(['a', 'b'], '.', (error, files) => {
|
|
error; // $ExpectType Error | null
|
|
files; // $ExpectType File[] | undefined
|
|
});
|