flow2schema/tests/samples/skipFunctions.js

34 lines
337 B
JavaScript

type Type = {
a: string,
foo(): void,
b: number,
bar: () => void,
};
interface Interface {
a: string;
foo(): void;
b: number;
bar: () => void;
}
class Class {
a: string;
foo() {}
get bar() {}
set bar(a) {}
b: number;
baz: () => void;
}
export {Type, Interface, Class};