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

8 lines
362 B
Plaintext

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