e76d17257a
* fix optional fuction condition. * Adds a test Co-authored-by: Orta <git@orta.io>
22 lines
409 B
TypeScript
22 lines
409 B
TypeScript
// #39672
|
|
// <reference path='fourslash.ts'/>
|
|
// @strict: true
|
|
|
|
//// interface Obj {
|
|
//// optionalMethod?: (current: any) => any;
|
|
//// };
|
|
////
|
|
//// const o: Obj = {
|
|
//// optionalMethod(/*1*/) {
|
|
//// return {};
|
|
//// }
|
|
//// };
|
|
|
|
verify.signatureHelp(
|
|
{
|
|
marker: "1",
|
|
text: 'optionalMethod(current: any): any',
|
|
parameterName: "current",
|
|
parameterSpan: "current: any",
|
|
},
|
|
);
|