We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45c7c7c + 1ea789d commit 55e9242Copy full SHA for 55e9242
test/flow.js
@@ -0,0 +1,23 @@
1
+// @flow
2
+function foo(arg1 :string, arg2: number): string {
3
+ return ''
4
+}
5
+
6
+interface Foo {
7
+ foo: string
8
9
10
+type Bar = {
11
+ bar: number
12
13
14
+class FooBar {
15
+ props: Bar
16
17
+ foo (arg1: string, arg2: any): void {
18
+ }
19
20
+ bar (arg1: number, arg2: Foo): any {
21
+ return
22
23
test/test.ts
@@ -14,12 +14,18 @@ function union(): number | string {
}
interface IFoo {
+ foo?: string
+interface InterfaceBar extends IFoo {
class Foo {
24
25
26
class Bar extends Foo implements IFoo {
27
+ private foo: number
28
+ bar: string
29
constructor(private arg1: string, public arg2: string) {
30
super()
31
0 commit comments