refactor: type ModuleContext and index.ts functions with SDK types
This commit is contained in:
5
types.ts
5
types.ts
@@ -1,3 +1,4 @@
|
||||
import type { ExtensionContext, ReadonlyFooterDataProvider } from "@mariozechner/pi-coding-agent";
|
||||
import type { UsageLimit, UsageReport } from "./usage";
|
||||
|
||||
export type ModuleName = "directory" | "context" | "model" | "thinking" | "cost" | "usage";
|
||||
@@ -40,8 +41,8 @@ export interface StatusbarState {
|
||||
}
|
||||
|
||||
export interface ModuleContext {
|
||||
ctx: any;
|
||||
footerData: any;
|
||||
ctx: ExtensionContext;
|
||||
footerData: ReadonlyFooterDataProvider;
|
||||
state: StatusbarState;
|
||||
config: StatusbarConfig;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user