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

7 lines
555 B
Plaintext

import { type TSchema, type SchemaOptions } from '../schema/index';
import { type TFunction } from '../function/index';
import { type TNever } from '../never/index';
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>;