flowgen
flowgen copied to clipboard
Formatting with prettier breaks
[error] dist/private/js/index.flow.js: SyntaxError: `declare export interface` is not supported. Use `export interface` instead (5:16)
[error] 3 | * Properties of a CustomMessage.
[error] 4 | */
[error] > 5 | declare export interface ICustomMessage {
[error] | ^
[error] 6 |
[error] 7 | /**
[error] 8 | * CustomMessage payload
Want to try make a unit test for this?
this happens because there is no module declaration:
declare module 'something' {
declare export interface ICustomMessage {
I get a type error when trying to create a d.ts file with what @stereobooster wrote. so I just added a test case for global declare and it works as expected @vjpr if you have some better code to reproduce, you are welcome to share and I will add it to the test case.