Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: add basic flowtype for glob to fix flow runner
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
  • Loading branch information
jacobheun authored and daviddias committed Mar 31, 2018
1 parent c89fdef commit ef6c1f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flow-typed/custom-definitions/glob.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare module 'glob' {
declare type Callback = (err: ?Error, matches: ?Array<String>) => void;

declare module.exports: {
(f: string, opts?: any | Callback, callback?: Callback): void;
sync(pattern: string, options?: any): Array<string>;
};
}

0 comments on commit ef6c1f0

Please sign in to comment.