mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
16 lines
238 B
JavaScript
16 lines
238 B
JavaScript
declare class Foo {
|
|
foo: string;
|
|
}
|
|
|
|
function foo0(x: ?string): string {
|
|
return x && x || "";
|
|
}
|
|
|
|
function foo1(x: ?Foo): string {
|
|
return x && x.foo || "";
|
|
}
|
|
|
|
function foo2(x: ?Class<Foo>): string {
|
|
return x && new x().foo || "";
|
|
}
|