FsPhantomDecl Type
A declaration TypeScript *computes* and F# cannot reproduce: a mapped type, a conditional or a template literal at an operand the checker could not resolve (§4.10, §4.11). There is no structure to emit - the structure is a function of an argument not yet supplied - so the declaration is erased and keeps only its name and arity, which is enough for uses of it to stay distinct from each other and from `obj`. Its single case is private, so the only way in or out is a cast, which is exactly the guarantee the generator can honestly make.
Record fields
| Record Field |
Description
|
What the value is at runtime once erased: `string` for a template literal or an intrinsic string mapping, `obj` for everything else.
|
|
Full Usage:
Docs
Field type: string
|
|
Full Usage:
Name
Field type: string
|
|
|
|
|
|
|
|