CmpArg
이 페이지에서

CmpArg

타입, 타입 분류

The operand a comparison method accepts for a receiver of key K: the receiver's own scalar kind, since both targets compare matching operands only, plus f32 for an f64 receiver, which widens before the compare.

import type { CmpArg } from 'typeshade'

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

구문

type CmpArg<K extends string> = ReadonlyNode<KindScalar<K>> | number;

설명

A mixed pair (f32 against i32, f64 against an integer) is a type error. A JS number lifts to the receiver’s scalar kind.

소스

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

이 페이지 편집 문제 보고