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

7 lines
567 B
Plaintext

import { type TSchema, type SchemaOptions } from '../schema/index.mjs';
import { type TFunction } from '../function/index.mjs';
import { type TNever } from '../never/index.mjs';
export type TReturnType<Type extends TSchema, Result extends TSchema = Type extends TFunction<infer _Parameters extends TSchema[], infer ReturnType extends TSchema> ? ReturnType : TNever> = Result;
/** `[JavaScript]` Extracts the ReturnType from the given Function type */
export declare function ReturnType<Type extends TSchema>(schema: Type, options?: SchemaOptions): TReturnType<Type>;