flotate
flotate copied to clipboard
More examples?
- What is the annotation for a function that takes zero parameters and returns a boolean or undefined or null or an object?
(Edit: not inline annotation, but above the function.)
Would that be something like (in CoffeeScript):
### (): ?(Object | boolean) ###
config: ->
# code...
@taoeffect first i think your comment needs to include a colon prefix: ###: ... ###
. Also i think this method definition looks like something not possible with flotate currently. See https://github.com/jareware/flotate/pull/9 First try a simple annotation that you can verify, like (x: number): boolean
. If flotate does not detect the annotation, try with my fork and see if it does.
Thx @ahamid!