NodeLike
이 페이지에서

NodeLike

타입, 타입 분류

Anything accepted where a node is read: any node, mutable or read-only, or a JS number, which lifts to an f32 literal.

import type { NodeLike } from 'typeshade'

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

구문

type NodeLike = ReadonlyNode<any> | number;

설명

Reading takes the ReadonlyNode supertype, so a Let(), parameter or constant operand is accepted everywhere a value is consumed; only .assign() needs the mutable Node subtype.

함께 보기

소스

src/core/ir/node.ts, 58행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고