flow switch to module.exports

This commit is contained in:
SheetJS 2018-04-21 10:21:59 -04:00
parent 0e83490e4a
commit 122f01a3c3
3 changed files with 8 additions and 11 deletions

@ -7,7 +7,6 @@ node_js:
- "4"
- "0.12"
- "0.10"
- "0.9"
- "0.8"
before_install:
- "npm install -g npm@4.3.0"

@ -10,19 +10,20 @@ type OutType = Data;
type CPIndex = number|string;
type CPTable = {
[key: CPIndex]:CPEntry;
[key:CPIndex]:CPEntry;
utils:{
decode(cp:CPIndex, data:OutType): string;
decode(cp:CPIndex, data:OutType):string;
encode(cp:CPIndex, data:StrData, ofmt:?string):OutType;
hascp(cp:number):boolean;
magic:any;
cache:any;
};
version:string
};
declare var cptable: CPTable;
declare var cptable:CPTable;
declare module './cptable' {
declare var exports: CPTable;
declare module.exports:CPTable;
}
*/

@ -2,11 +2,8 @@
type _CB = {(data:Buffer):void;};
declare module 'exit-on-epipe' {};
declare module 'codepage' { declare var exports:CPTable; };
declare module '../' { declare var exports:CPTable; };
declare module 'codepage' { declare module.exports:CPTable; };
declare module '../' { declare module.exports:CPTable; };
declare module 'commander' { declare var exports:any; };
type CPTableType = { [i:CPIndex]:CPEntry; };
declare module './cptable' { declare var exports:CPTableType; };
declare module 'commander' { declare module.exports:any; };
*/