Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(dsh-plugin): generate declarations with Oxc

Amruth Pillaid07d0727bb6c
diff --git a/packages/dsh-plugin/src/config.ts b/packages/dsh-plugin/src/config.ts
index d0bc9b51c..da40e6d41 100644
--- a/packages/dsh-plugin/src/config.ts
+++ b/packages/dsh-plugin/src/config.ts
@@ -15,7 +15,7 @@ export interface Config {
toolCallTimeoutMs: number;
}
-export const Config = z.object({
+export const Config: z<{ [K in keyof Config]?: Config[K] | null } & Record<string, unknown>, Config> = z.object({
// Not `.required()`: the bundle patch mounts this plugin as soon as the
// package is installed, so a missing key has to be an inert no-op rather
// than a validation error that takes the whole profile down at boot.
diff --git a/packages/dsh-plugin/src/index.ts b/packages/dsh-plugin/src/index.ts
index afb41152a..9ef097939 100644
--- a/packages/dsh-plugin/src/index.ts
+++ b/packages/dsh-plugin/src/index.ts
@@ -28,7 +28,7 @@ export const name = "reactive-resume";
* its own dependency on the tools service, so the bridge still gets what it
* needs without this plugin waiting on it.
*/
-export const inject = ["systemPrompt"];
+export const inject: string[] = ["systemPrompt"];
/**
* Connect a Reactive Resume account to the session.
diff --git a/packages/dsh-plugin/tsconfig.json b/packages/dsh-plugin/tsconfig.json
index 4dd8bf05f..9a83e49b7 100644
--- a/packages/dsh-plugin/tsconfig.json
+++ b/packages/dsh-plugin/tsconfig.json
@@ -1,6 +1,8 @@
{
"extends": "@reactive-resume/config/tsconfig.base.json",
"compilerOptions": {
+ "declaration": true,
+ "isolatedDeclarations": true,
"noEmit": true
},
// Scoped to `src` so tsdown's declaration emit does not follow