MCPcopy Index your code
hub / github.com/freshframework/fresh / isVoidOrPromiseVoid

Function isVoidOrPromiseVoid

tools/check_docs_lib.ts:54–60  ·  view source on GitHub ↗
(returnType: TsTypeDef)

Source from the content-addressed store, hash-verified

52}
53
54function isVoidOrPromiseVoid(returnType: TsTypeDef) {
55 return isVoid(returnType) ||
56 (returnType.kind === "typeRef" &&
57 returnType.typeRef.typeName === "Promise" &&
58 returnType.typeRef.typeParams?.length === 1 &&
59 isVoid(returnType.typeRef.typeParams[0]!));
60}
61
62function isTypeAsserts(returnType: TsTypeDef) {
63 return returnType.kind === "typePredicate" &&

Callers 1

assertFunctionDocsFunction · 0.85

Calls 1

isVoidFunction · 0.85

Tested by

no test coverage detected