flow2schema/tests/samples/skipFunctions.js

34 lines
337 B
JavaScript
Raw Normal View History

2017-10-29 16:14:21 +03:00
type Type = {
a: string,
foo(): void,
b: number,
2017-11-03 10:41:36 +03:00
bar: () => void,
2017-10-29 16:14:21 +03:00
};
interface Interface {
a: string;
foo(): void;
b: number;
2017-11-03 10:41:36 +03:00
bar: () => void;
2017-10-29 16:14:21 +03:00
}
class Class {
a: string;
foo() {}
get bar() {}
set bar(a) {}
b: number;
2017-11-03 10:41:36 +03:00
baz: () => void;
2017-10-29 16:14:21 +03:00
}
2017-11-09 12:10:21 +03:00
export {Type, Interface, Class};