mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
11 lines
307 B
Plaintext
11 lines
307 B
Plaintext
// @flow
|
|
// Test ambient component declarations in .flow files (implicit ambient context)
|
|
|
|
// Ambient components without body - these should be allowed
|
|
component Button(props: { label: string });
|
|
|
|
component Input(value: string, onChange: (string) => void);
|
|
|
|
// Export them
|
|
declare export { Button, Input };
|