voidT
이 페이지에서

voidT

상수, 타입 분류

The absent-value type: the return type of an fn whose body never returns a value.

import { voidT } from 'typeshade'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

const voidT: { readonly kind: "void"; }

설명

Return-type inference falls back to it when it finds no Return in a body, so you rarely need to write it explicitly.

관련 가이드

소스

src/core/ir/types.ts, 771행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고