-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
The type definition file for the Q module has the following problem:
//export function try(method: Function, ...args: any[]): Promise<any>; // <- This is broken currently - not sure how to fix.
The compiler doesn't accept the type definition because it thinks a try/catch block is about to begin.
q/Q.d.ts(204,21): error TS1006: Identifier expected; 'try' is a keyword.
q/Q.d.ts(204,24): error TS1005: '{' expected.
q/Q.d.ts(204,72): error TS1005: '=>' expected.
Is there any way to define this exported function?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript