flotate icon indicating copy to clipboard operation
flotate copied to clipboard

More examples?

Open taoeffect opened this issue 10 years ago • 3 comments

  • 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.)

taoeffect avatar Feb 15 '15 00:02 taoeffect

Would that be something like (in CoffeeScript):

    ### (): ?(Object | boolean) ###
    config: ->
            # code...

taoeffect avatar Feb 15 '15 01:02 taoeffect

@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.

ahamid avatar Feb 15 '15 16:02 ahamid

Thx @ahamid!

taoeffect avatar Feb 16 '15 22:02 taoeffect