I get this error when running flow check
, but I'm not sure what it means.
Cannot use exports as a type because exports is a value. To get the type of a value use typeof.
The error location is 0:1 (at the @flow comment). Here's the code:
/* @flow */
import Chunk from '../models/Chunk'
export interface IChunkSorter {
sort(chunks: Chunk[]): Chunk[];
}
Any ideas? I've googled for the error message but there's literally no results.
Chunk
? If it is a type, you should import it withimport type ...
. Otherwise definetype ChunkType = typeof Chunk
and use itsort(chunks: ChunkType[]): ChunkType[];
β BudweisChunk
is a class and I still get the same error when I use what you suggested :/ β Nonscheduled