Files
NapCatQQ/.pnpm-store/v3/files/b6/6e387365f96a0d7f7171b4057ace6e08fe78918a97e031d77d186794b0dc33401fd7881e9554541254ecc3dc05173cb00f543304f2242d1e947701e07e2a00
T
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

8 lines
372 B
Plaintext

import { CreateType } from '../create/type.mjs';
import { Never } from '../never/index.mjs';
import * as KindGuard from '../guard/kind.mjs';
/** `[JavaScript]` Extracts the InstanceType from the given Constructor type */
export function InstanceType(schema, options) {
return (KindGuard.IsConstructor(schema) ? CreateType(schema.returns, options) : Never(options));
}