chore: update Env declaration to extend Record<string, unknown>
This commit is contained in:
@@ -28,7 +28,9 @@ envSourceFile.insertImportDeclaration(2, {
|
||||
moduleSpecifier: "hono",
|
||||
namedImports: ["Env as HonoEnv"],
|
||||
});
|
||||
envSourceFile.getInterfaceOrThrow("Env").addExtends("HonoEnv");
|
||||
envSourceFile
|
||||
.getInterfaceOrThrow("Env")
|
||||
.addExtends(["HonoEnv", "Record<string, unknown>"]);
|
||||
envSourceFile.getInterfaceOrThrow("Env").addProperties(
|
||||
secretNames.map((name) => ({
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user