Skip to content

Commit 8214eac

Browse files
authoredNov 10, 2022
Merge pull request #52 from spring-media/fix-correct-clig-version
fix: use correct version one for clig
2 parents 9ce55d7 + 2173ee4 commit 8214eac

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed
 

‎src/ps-web-apis.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ export type IConfig = {
138138
[key in IApp]: IAppConfig;
139139
};
140140

141-
export type ICligV1 = (app: IApp) => Promise<{ open: (layer: ILayer) => void }>;
141+
export interface ICligV1 {
142+
init: (app: IApp) => Promise<void>;
143+
open: (layer: ILayer) => void;
144+
}
145+
export type ICligV2 = (app: IApp) => Promise<{ open: (layer: ILayer) => void }>;
142146

143147
export function whoamiV1(): Promise<WhoamiV1> {
144148
return requirePackage("whoami:v1");
@@ -149,7 +153,10 @@ export function utilsV1(): Promise<UtilsV1> {
149153
}
150154

151155
export function CligV1(): Promise<ICligV1> {
152-
return requirePackage("clig:v1");
156+
return requirePackage("ppclig:v1");
157+
}
158+
export function CligV2(): Promise<ICligV2> {
159+
return requirePackage("clig:v2");
153160
}
154161
export const provideApi = provide;
155162
export const requireApi = requirePackage;

0 commit comments

Comments
 (0)
Please sign in to comment.