Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use correct version one for clig #52

Merged
merged 2 commits into from
Nov 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/ps-web-apis.ts
Original file line number Diff line number Diff line change
@@ -138,7 +138,11 @@ export type IConfig = {
[key in IApp]: IAppConfig;
};

export type ICligV1 = (app: IApp) => Promise<{ open: (layer: ILayer) => void }>;
export interface ICligV1 {
init: (app: IApp) => Promise<void>;
open: (layer: ILayer) => void;
}
export type ICligV2 = (app: IApp) => Promise<{ open: (layer: ILayer) => void }>;

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

export function CligV1(): Promise<ICligV1> {
return requirePackage("clig:v1");
return requirePackage("ppclig:v1");
}
export function CligV2(): Promise<ICligV2> {
return requirePackage("clig:v2");
}
export const provideApi = provide;
export const requireApi = requirePackage;