musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Need ability to typedef a function. #105

Closed iccir closed 8 years ago

iccir commented 8 years ago

Clients using --no-implicit-any need the ability to declare a Function type. Right now they can only use Function or declare a TypeScript type in a .d.ts file.

This could be integrated into @typedef, but it looks messy:

@typedef function(completed: BOOL): void AnimationCallback;