flow-up
Version:
Easily add flowtype to your codebase
12 lines (8 loc) • 403 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
const isFlowInPkg = exports.isFlowInPkg = pkg => 'flow' in pkg;
const isFlowupInPkg = exports.isFlowupInPkg = pkg => 'flowup' in pkg;
const hasFlowPragma = exports.hasFlowPragma = fileContent => fileContent.indexOf('@flow') > -1;
const addFlowPragma = exports.addFlowPragma = fileContent => `// @flow\n\n${fileContent}`;
;