fix: add local type imports for AgentIdentity and DisclawConfig
Re-exported types via 'export type { X } from' are not available as
local names in the same file. Add explicit 'import type' statements
so TypeScript can resolve the types used in function signatures.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
67433d63fa
commit
9421186b35
2 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import * as path from "path";
|
||||||
import * as YAML from "yaml";
|
import * as YAML from "yaml";
|
||||||
import { ZodError } from "zod";
|
import { ZodError } from "zod";
|
||||||
import { AgentYamlSchema } from "./schema";
|
import { AgentYamlSchema } from "./schema";
|
||||||
|
import type { AgentYaml as AgentIdentity } from "./schema";
|
||||||
|
|
||||||
export type { AgentYaml as AgentIdentity } from "./schema";
|
export type { AgentYaml as AgentIdentity } from "./schema";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import * as YAML from "yaml";
|
||||||
import { ZodError } from "zod";
|
import { ZodError } from "zod";
|
||||||
import { childLogger } from "../runtime/logger";
|
import { childLogger } from "../runtime/logger";
|
||||||
import { DisclawConfigSchema } from "./schema";
|
import { DisclawConfigSchema } from "./schema";
|
||||||
|
import type { DisclawConfig } from "./schema";
|
||||||
|
|
||||||
export type { DisclawConfig } from "./schema";
|
export type { DisclawConfig } from "./schema";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue