For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/module-loader/type-aliases/ValidationResult.md.
  • 简体中文
  • Type Alias: ValidationResult<T>

    type ValidationResult<T> = 
      | {
      ok: true;
      manifest: T;
    }
      | {
      ok: false;
      errors: string[];
      issues: ShapeIssue[];
    };

    Defined in: module-loader/manifest-schema.ts:116

    统一校验结果泛型联合体。 失败时同时提供人类可读 errors 与机器可读 issues。

    Type Parameters

    Type Parameter
    T