Files
NapCatQQ/.pnpm-store/v3/files/b4/b0497740cfa78e85927cd178596558adf563cf34e577b3b8dc0adbd5562813ca2222bd0a065a4e20bc835a0efe7d6254ee40f821d7924448c6a8c280cc09ce
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

13 lines
457 B
Plaintext

import type { TSchema } from '../schema/index.mjs';
import type { Static } from '../static/index.mjs';
import { Kind } from '../symbols/index.mjs';
type UnionStatic<T extends TSchema[], P extends unknown[]> = {
[K in keyof T]: T[K] extends TSchema ? Static<T[K], P> : never;
}[number];
export interface TUnion<T extends TSchema[] = TSchema[]> extends TSchema {
[Kind]: 'Union';
static: UnionStatic<T, this['params']>;
anyOf: T;
}
export {};