* Component syntax and related language features printing support Relevant Flow docs: - https://flow.org/en/docs/react/component-syntax/ - https://flow.org/en/docs/react/render-types/ * Update issue number * declare new test as unstable * fix tests
30 lines
671 B
JavaScript
30 lines
671 B
JavaScript
hook useFoo1() {}
|
|
|
|
export default hook useFoo2() {}
|
|
|
|
export hook useFoo3() {}
|
|
|
|
hook useFoo4(): string {}
|
|
|
|
hook useFoo5<T>() {}
|
|
|
|
hook useFoo6(...foo) {}
|
|
|
|
hook useFoo7(...rest?: Foo) {}
|
|
|
|
hook useFoo8(foo, ...bar) {}
|
|
|
|
hook useFoo9(foo: Foo, ...bar: Bar) {}
|
|
|
|
hook useFoo10(foo: () => void,): number { return; }
|
|
|
|
hook useFoo11(o: { f(string): void }) {}
|
|
|
|
hook useFoo12(foo, ...bar): React.Element<typeof SomeComponentLonnnnnnnnnnnnnnnnnnnnnnnnnnnnng> {}
|
|
|
|
hook useFoo13(foo: Array<Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo>, ...bar): void {}
|
|
|
|
hook useFoo14<
|
|
T: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo,
|
|
>(): any {};
|