Skip to content

Commit

Permalink
flow switch to module.exports
Browse files Browse the repository at this point in the history
  • Loading branch information
SheetJSDev committed Apr 21, 2018
1 parent 0e83490 commit 122f01a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -7,7 +7,6 @@ node_js:
- "4"
- "0.12"
- "0.10"
- "0.9"
- "0.8"
before_install:
- "npm install -g npm@4.3.0"
Expand Down
9 changes: 5 additions & 4 deletions misc/flow.js
Expand Up @@ -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;
}
*/
9 changes: 3 additions & 6 deletions misc/flowdeps.js
Expand Up @@ -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; };
*/

0 comments on commit 122f01a

Please sign in to comment.