Logo Xantham

FsConstructorMember Type

An interface member. Overloads are consecutive `FsMethod` entries sharing a name - overloaded abstract members are legal F#. A construct signature of a *constructor object* - the thing `typeof Request` names, and the type of a `declare var Request: { new (...): Request }` (ยง4.4). F# has no first-class constructor-object type, so the object is declared as an interface of its own and each of its construct signatures becomes an `[]` `Create` member: `$0` is the object the member is read off, so `scope.Request.Create(url)` reaches JavaScript as `new scope.Request(url)` rather than as a call. The name is always `Create` - overloads are consecutive entries, exactly as methods are.

Record fields

Record Field Description

Docs

Full Usage: Docs

Field type: string
Field type: string

Parameters

Full Usage: Parameters

Field type: FsParam list
Field type: FsParam list

Return

Full Usage: Return

Field type: FsTypeRef
Field type: FsTypeRef

Tags

Full Usage: Tags

Field type: JSDocTagInfo list
Field type: JSDocTagInfo list

TypeParameters

Full Usage: TypeParameters

Field type: FsTypeParam list

The signature's own parameters: `new (value: T): Box` binds `T` per call, and the constructor object itself is not generic, so this is where they go.

Field type: FsTypeParam list

Type something to start searching.