mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
19 lines
463 B
Plaintext
19 lines
463 B
Plaintext
// @flow
|
|
// Test ambient variable declarations in .js.flow files
|
|
|
|
// Implicit ambient declarations (without 'declare' keyword)
|
|
const foo: string;
|
|
let bar: number;
|
|
var baz: boolean;
|
|
|
|
// Generic types
|
|
const genericVal: Array<string>;
|
|
|
|
// Mix: ambient and regular
|
|
const ambient: number;
|
|
const regular = 123;
|
|
const withBoth: string = "test";
|
|
|
|
// Export them so they can be used in other files
|
|
declare export { foo, bar, baz, genericVal, ambient, regular, withBoth };
|