Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Restore typing for app.register (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGrandon authored Apr 17, 2018
1 parent c7f4536 commit 7c16741
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions flow-typed/fusion-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,15 @@ declare module 'fusion-core' {
renderer: any;
cleanup(): Promise<any>;
enhance<Token, Deps>(token: Token, enhancer: Function): void;
register: any;
// register<Deps, Provides>(Plugin: FusionPlugin<Deps, Provides>): aliaser<*>;
// register<Token, Deps>(
// token: Token,
// Plugin: FusionPlugin<Deps, $Call<ExtractReturnType, Token>>
// ): aliaser<*>;
// register<Token: Object>(
// token: Token,
// val: $Call<ExtractReturnType, Token>
// ): aliaser<*>;
register<Deps, Provides>(Plugin: FusionPlugin<Deps, Provides>): aliaser<*>;
register<Token, Deps>(
token: Token,
Plugin: FusionPlugin<Deps, $Call<ExtractReturnType, Token>>
): aliaser<*>;
register<Token: Object>(
token: Token,
val: $Call<ExtractReturnType, Token>
): aliaser<*>;
middleware<Deps>(
deps: Deps,
middleware: (Deps: $ObjMap<Deps, ExtractReturnType>) => Middleware
Expand Down

0 comments on commit 7c16741

Please sign in to comment.