Skip to content

Commit

Permalink
Add declare module instead of npm$namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 10, 2021
1 parent d1b157e commit e84638f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flow-libs/filesize.js.flow
Expand Up @@ -5,9 +5,11 @@
* @flow
*/

declare module 'fileSize' { // manually added

declare var fileSize: Filesize$Filesize;
declare export default typeof fileSize;
declare var Filesize: typeof npm$namespace$Filesize;


declare var npm$namespace$Filesize: {|
SiJedecBits: Class<Filesize$SiJedecBits>,
Expand Down Expand Up @@ -121,3 +123,6 @@ declare interface Filesize$Filesize {
(bytes: number, options?: Filesize$Options): string;
partial: (options: Filesize$Options) => (bytes: number) => string;
}


}

0 comments on commit e84638f

Please sign in to comment.