Skip to content

Commit

Permalink
fix: resolved the missing platform type
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha committed Sep 15, 2019
1 parent 9c4365a commit 948b52a
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions packages/cli-types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface Command {
}>;
}

export interface PlatformConfig<
interface PlatformConfig<
ProjectConfig,
ProjectParams,
DependencyConfig,
Expand Down Expand Up @@ -111,9 +111,20 @@ export interface Config {
assets: string[];
dependencies: {[key: string]: Dependency};
platforms: {
android?: AndroidPlatformConfig;
ios?: IOSPlatformConfig;
} & {[name: string]: PlatformConfig<any, any, any, any>};
android: PlatformConfig<
AndroidProjectConfig,
AndroidProjectParams,
AndroidDependencyConfig,
AndroidDependencyParams
>;
ios: PlatformConfig<
IOSProjectConfig,
IOSProjectParams,
IOSDependencyConfig,
IOSDependencyParams
>;
[name: string]: PlatformConfig<any, any, any, any>;
};
commands: Command[];
haste: {
platforms: Array<string>;
Expand Down

0 comments on commit 948b52a

Please sign in to comment.