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

11 lines
295 B
Plaintext

import { CreateType } from '../create/type.mjs';
import { Kind } from '../symbols/index.mjs';
/** `[Json]` Creates a Literal type */
export function Literal(value, options) {
return CreateType({
[Kind]: 'Literal',
const: value,
type: typeof value,
}, options);
}