mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
508 B
TypeScript
18 lines
508 B
TypeScript
import change = require('gulp-change');
|
|
|
|
change(); // $ExpectError
|
|
change(1); // $ExpectError
|
|
|
|
function performChange(content: string): string {
|
|
return content.replace(/foo/g, 'FOO');
|
|
}
|
|
|
|
change(performChange); // $ExpectType MapStream
|
|
|
|
function performChangeAsync(content: string, done: (err: any, content: string) => any): void {
|
|
content.replace(/foo/g, 'FOO');
|
|
done(null, content);
|
|
}
|
|
|
|
change(performChangeAsync); // $ExpectType MapStream
|