diff --git a/tests/__snapshots__/tsnapi/@devframes/plugin-code-server/node.snapshot.d.ts b/tests/__snapshots__/tsnapi/@devframes/plugin-code-server/node.snapshot.d.ts index 43c1b35f..56fa1b26 100644 --- a/tests/__snapshots__/tsnapi/@devframes/plugin-code-server/node.snapshot.d.ts +++ b/tests/__snapshots__/tsnapi/@devframes/plugin-code-server/node.snapshot.d.ts @@ -103,7 +103,7 @@ export declare function setupCodeServer(_: DevframeNodeContext, _?: CodeServerOp // #endregion // #region Variables -export declare const diagnostics: Diagnostics<{ +export declare const diagnostics: import("devframe/utils/nostics").DevframeDiagnostics<{ readonly DP_CODE_SERVER_0001: { readonly why: (p: { bin: string; @@ -139,9 +139,7 @@ export declare const diagnostics: Diagnostics<{ }) => string; readonly fix: "Check the tunnel logs, ensure the `code` CLI is signed in, or raise `startTimeout`."; }; -}, readonly [(d: Diagnostic, { method }?: { - method?: "log" | "warn" | "error"; -}) => void], never>; +}, []>; // #endregion // #region Referenced (internal) @@ -150,18 +148,6 @@ interface DetectCodeServerResult { version?: string; bin: string; } -declare class Diagnostic extends Error { - name: string; - code: string; - docs?: string; - fix?: string; - sources?: string[]; - data: Data; - get why(): string; - constructor(_: DiagnosticInit, _?: StackTraceFrame); - toJSON(): DiagnosticJSON; -} -type Diagnostics, Reporters extends readonly AnyDiagnosticReporter[], DataOverride = never> = { [Code in keyof Codes]: DiagnosticHandle, Prettify>, [DataOverride] extends [never] ? InferCodeData : DataOverride>; }; interface ProfileContext { host: string; port: number; diff --git a/tests/__snapshots__/tsnapi/@devframes/plugin-terminals/node.snapshot.d.ts b/tests/__snapshots__/tsnapi/@devframes/plugin-terminals/node.snapshot.d.ts index 757bcd74..12fb0adb 100644 --- a/tests/__snapshots__/tsnapi/@devframes/plugin-terminals/node.snapshot.d.ts +++ b/tests/__snapshots__/tsnapi/@devframes/plugin-terminals/node.snapshot.d.ts @@ -50,7 +50,7 @@ export declare function setupTerminals(_: DevframeNodeContext, _?: TerminalsOpti // #endregion // #region Variables -export declare const diagnostics: Diagnostics<{ +export declare const diagnostics: import("devframe/utils/nostics").DevframeDiagnostics<{ readonly DP_TERMINALS_0001: { readonly why: (p: { id: string; @@ -88,22 +88,5 @@ export declare const diagnostics: Diagnostics<{ readonly why: "Terminals manager is not initialised on this context"; readonly fix: "Call setupTerminals(ctx) (or use createTerminalsDevframe) before invoking terminal RPCs."; }; -}, readonly [(d: Diagnostic, { method }?: { - method?: "log" | "warn" | "error"; -}) => void], never>; -// #endregion - -// #region Referenced (internal) -declare class Diagnostic extends Error { - name: string; - code: string; - docs?: string; - fix?: string; - sources?: string[]; - data: Data; - get why(): string; - constructor(_: DiagnosticInit, _?: StackTraceFrame); - toJSON(): DiagnosticJSON; -} -type Diagnostics, Reporters extends readonly AnyDiagnosticReporter[], DataOverride = never> = { [Code in keyof Codes]: DiagnosticHandle, Prettify>, [DataOverride] extends [never] ? InferCodeData : DataOverride>; }; +}, []>; // #endregion \ No newline at end of file diff --git a/tests/__snapshots__/tsnapi/devframe/internal.snapshot.d.ts b/tests/__snapshots__/tsnapi/devframe/internal.snapshot.d.ts index 6261823b..ebb80b35 100644 --- a/tests/__snapshots__/tsnapi/devframe/internal.snapshot.d.ts +++ b/tests/__snapshots__/tsnapi/devframe/internal.snapshot.d.ts @@ -206,7 +206,7 @@ export declare function toolInputToCommandArgs(_: unknown, _?: number): unknown[ // #endregion // #region Variables -export declare const diagnostics: import("nostics").Diagnostics<{ +export declare const diagnostics: DevframeDiagnostics<{ readonly DF0006: { readonly why: (p: { name: string; @@ -546,8 +546,6 @@ export declare const diagnostics: import("nostics").Diagnostics<{ }) => string; readonly fix: "Give each entry in `prompts` its own `name`. `prompts/get` finds a prompt by its name, so two prompts cannot share one."; }; -}, readonly [(d: import("nostics").Diagnostic, { method }?: { - method?: "log" | "warn" | "error"; -}) => void], never>; +}, []>; export declare const LIST_CLIENTS_TOOL: string; // #endregion \ No newline at end of file