mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
15 lines
329 B
TypeScript
15 lines
329 B
TypeScript
import init = require('git-init');
|
|
|
|
// $ExpectType void
|
|
init((err: Error | null, stdout: any, stderr: any) => {
|
|
// something here
|
|
});
|
|
// $ExpectType void
|
|
init('./something/', (err: Error | null, stdout: any, stderr: any) => {
|
|
// something here
|
|
});
|
|
// @ts-expect-error
|
|
init(5);
|
|
// @ts-expect-error
|
|
init('./something', 5);
|