2014-08-30 03:02:05 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////function parameterFunction(callback: (a: number, b: string) => void) {
|
|
|
|
//// callback(/*parameterFunction1*/5, /*parameterFunction2*/"");
|
2015-03-02 23:41:44 +01:00
|
|
|
////}
|
|
|
|
|
2018-05-15 21:34:53 +02:00
|
|
|
verify.signatureHelp(
|
|
|
|
{
|
|
|
|
marker: "parameterFunction1",
|
|
|
|
text: "callback(a: number, b: string): void",
|
|
|
|
parameterCount: 2,
|
|
|
|
parameterName: "a",
|
|
|
|
parameterSpan: "a: number",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
marker: "parameterFunction2",
|
|
|
|
text: "callback(a: number, b: string): void",
|
|
|
|
parameterName: "b",
|
|
|
|
parameterSpan: "b: string",
|
|
|
|
},
|
|
|
|
);
|