11 lines
275 B
JavaScript
11 lines
275 B
JavaScript
//// [callbackArgsDifferByOptionality.ts]
|
|
function x3(callback: (x?: 'hi') => number);
|
|
function x3(callback: (x: string) => number);
|
|
function x3(callback: (x: any) => number) {
|
|
cb();
|
|
}
|
|
|
|
//// [callbackArgsDifferByOptionality.js]
|
|
function x3(callback) {
|
|
cb();
|
|
}
|