Logo Xantham

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

Carrier

Full Usage: Carrier

Field type: FsTypeRef

What the value is at runtime once erased: `string` for a template literal or an intrinsic string mapping, `obj` for everything else.

Field type: FsTypeRef

Docs

Full Usage: Docs

Field type: string
Field type: string

Name

Full Usage: Name

Field type: string
Field type: string

Order

Full Usage: Order

Field type: DeclOrder option
Field type: DeclOrder option

Tags

Full Usage: Tags

Field type: JSDocTagInfo list
Field type: JSDocTagInfo list

TypeParameters

Full Usage: TypeParameters

Field type: FsTypeParam list
Field type: FsTypeParam list

Type something to start searching.