FsTypeRef Type
The F# type written at a reference position. Phase B covers primitives, `option`, arrays, delegates (D5) and references to declarations this run generates; everything else widens to `FsObj` with a finding saying so.
Union cases
| Union case |
Description
|
|
A generic declaration applied to arguments: `Box
|
|
|
Full Usage:
FsBigInt
|
TypeScript's `bigint`. Exact: Fable 5 compiles F# `bigint` to the native JavaScript `BigInt` - read off the emitted `BigInt.js` (`typeof x === "bigint"`, `fromInt32 n` is `BigInt(n)`) and run against a JS object handing one over, not recalled. |
Full Usage:
FsBool
|
|
|
A primitive carrying a unit of measure: the F# rendering of a TypeScript branding intersection (§4.6, D11). `string & { __brand: "UserId" }` is a value that is a string at runtime and refuses to substitute for another string at compile time, which is what a measure is. The measure name is a declaration this run emits.
|
|
A heterogeneous union as Fable's erased `U2`-`U4` (D4, §4.5(4)). The threshold is four; wider unions widen to `obj`. Arms are distinct - a union whose arms collapse to one F# type is that type instead.
|
Full Usage:
FsFloat
|
|
Full Usage:
FsNamed string
Parameters:
string
|
|
Full Usage:
FsObj
|
|
|
|
Full Usage:
FsString
|
|
|
A fixed-length tuple (D7, §4.12): Fable compiles an F# tuple to a JS array, so the mapping is exact. Optional tail elements arrive already `option`-wrapped, because the checker hands them over as `T | undefined`.
|
Full Usage:
FsTypeVar string
Parameters:
string
|
A type variable in scope - a type parameter of the declaration being shaped (§4.9). Carries the name TypeScript spelled, without the leading tick the renderer adds.
|
Full Usage:
FsUnit
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsFsApp
Returns: bool
|
|
Full Usage:
this.IsFsArray
Returns: bool
|
|
Full Usage:
this.IsFsBigInt
Returns: bool
|
|
Full Usage:
this.IsFsBool
Returns: bool
|
|
Full Usage:
this.IsFsBranded
Returns: bool
|
|
Full Usage:
this.IsFsDelegate
Returns: bool
|
|
Full Usage:
this.IsFsErasedUnion
Returns: bool
|
|
Full Usage:
this.IsFsFloat
Returns: bool
|
|
Full Usage:
this.IsFsNamed
Returns: bool
|
|
Full Usage:
this.IsFsObj
Returns: bool
|
|
Full Usage:
this.IsFsOption
Returns: bool
|
|
Full Usage:
this.IsFsString
Returns: bool
|
|
Full Usage:
this.IsFsTuple
Returns: bool
|
|
Full Usage:
this.IsFsTypeVar
Returns: bool
|
|
Full Usage:
this.IsFsUnit
Returns: bool
|
|