Skip to content

Commit

Permalink
don't use mixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
sometimeskind committed Feb 26, 2018
1 parent d7f3d88 commit bc9bf78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export type AppType = BaseAppType & { name: AppNameType };

export type AppsMapType = { [appName: AppNameType]: AppType };

export type EventCallbackType = (...data: Array<mixed>) => mixed;
export type EmitterType = (eventTitle: EventTitleType, ...data: Array<mixed>) => void;
export type EventCallbackType = (...data: Array<any>) => any;
export type EmitterType = (eventTitle: EventTitleType, ...data: Array<any>) => void;
export type SubscriberType = (eventTitle: EventTitleType, callback: EventCallbackType) => void;
export type RemoveListenerType = (eventTitle: EventTitleType, callback: EventCallbackType) => void;

Expand Down Expand Up @@ -120,7 +120,7 @@ export type SlotsMapType = { [slotName: SlotNameType]: SlotType };

export type LoadScriptType = (state: StateType) => Promise<LoadedScriptType>;

type GetMarkupType = (state: StateWithAdditionsType, ...otherArgs: Array<mixed>) => Promise<string>;
type GetMarkupType = (state: StateWithAdditionsType, ...otherArgs: Array<any>) => string | Promise<string>;

type BaseFragmentType = {
slot?: SlotNameType,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-manager",
"version": "0.22.0",
"version": "0.22.1",
"description": "Script for managing the lifecycles of multiple apps on a single page",
"main": "es5/index.js",
"scripts": {
Expand Down

0 comments on commit bc9bf78

Please sign in to comment.