Files
NapCatQQ/.pnpm-store/v3/files/fc/660e24a7bb0826cfbd2f0ff6c806f920afc797e3a57d7ec5d56bfc6f5c47e160dd8ce787622558c9edf6fc5ef15ff2842a827184feb5bbdad901668b519f3e
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

10 lines
855 B
Plaintext

import type { Static } from '../static/index';
import type { TTemplateLiteral } from './template-literal';
import type { UnionToTuple } from '../helpers/index';
import { type TUnionEvaluated } from '../union/index';
import { type TLiteral } from '../literal/index';
export type TTemplateLiteralToUnionLiteralArray<T extends string[], Acc extends TLiteral[] = []> = (T extends [infer L extends string, ...infer R extends string[]] ? TTemplateLiteralToUnionLiteralArray<R, [...Acc, TLiteral<L>]> : Acc);
export type TTemplateLiteralToUnion<T extends TTemplateLiteral, U extends string[] = UnionToTuple<Static<T>>> = TUnionEvaluated<TTemplateLiteralToUnionLiteralArray<U>>;
/** Returns a Union from the given TemplateLiteral */
export declare function TemplateLiteralToUnion<T extends TTemplateLiteral>(schema: TTemplateLiteral): TTemplateLiteralToUnion<T>;