prettier/tests/flow/objectTypeProperty/objectTypeProperty.js

16 lines
264 B
JavaScript

/* @flow */
declare var BAZ: {stuff?: (x: number) => void} | void;
declare class Foo<T> {
constructor(): void;
foo: () => void;
}
let x: { x?: number }
type T = {
get goodGetterWithAnnotation(): number,
set goodSetterWithAnnotation(x: number): void,
}