StandardResult

tcmts.content.StandardResult · #457kie6x · type

What a StandardSchema says of a value: the value it makes of it, or what's wrong with it.

export type StandardResult<Output> =
  | { readonly value: Output; readonly issues?: undefined }
  | {
      readonly issues: readonly {
        readonly message: string;
        readonly path?: readonly (PropertyKey | { readonly key: PropertyKey })[] | undefined;
      }[];
    };

used by