Support Flow this parameter annotations (#12234)
This commit is contained in:
7
packages/babel-parser/test/fixtures/flow/this-annotation/declare-function/input.js
vendored
Normal file
7
packages/babel-parser/test/fixtures/flow/this-annotation/declare-function/input.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
declare function foo (this : number, a : string, b : number) : void
|
||||
|
||||
declare function bar (this : number): void
|
||||
|
||||
declare function baz (this : number, ...a : any): void
|
||||
|
||||
declare function qux<T> (this : T) : void
|
||||
Reference in New Issue
Block a user