File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,11 @@ export type IConfig = {
138
138
[ key in IApp ] : IAppConfig ;
139
139
} ;
140
140
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 } > ;
142
146
143
147
export function whoamiV1 ( ) : Promise < WhoamiV1 > {
144
148
return requirePackage ( "whoami:v1" ) ;
@@ -149,7 +153,10 @@ export function utilsV1(): Promise<UtilsV1> {
149
153
}
150
154
151
155
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" ) ;
153
160
}
154
161
export const provideApi = provide ;
155
162
export const requireApi = requirePackage ;
You can’t perform that action at this time.
0 commit comments