add some more flow types
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* @noflow */
|
||||
/* @flow */
|
||||
|
||||
import escapeRegExp from "lodash/string/escapeRegExp";
|
||||
import startsWith from "lodash/string/startsWith";
|
||||
@@ -16,7 +16,7 @@ export { inherits, inspect } from "util";
|
||||
* Test if a filename ends with a compilable extension.
|
||||
*/
|
||||
|
||||
export function canCompile(filename: string, altExts?: Array<string>) {
|
||||
export function canCompile(filename: string, altExts?: Array<string>): boolean {
|
||||
let exts = altExts || canCompile.EXTENSIONS;
|
||||
let ext = path.extname(filename);
|
||||
return contains(exts, ext);
|
||||
|
||||
Reference in New Issue
Block a user