FsEntrypoint
type FsEntrypoint =
{
Binding: ImportBinding
Parameters: FsParam list
Inherits: FsTypeRef option
}| Assembly | Xantham.Generator |
What makes a declaration an F# class rather than an interface (§4.4): the import that binds the JavaScript constructor and the parameters a derived class passes to it. An F# interface admits no inherit, so a TypeScript class written to be derived from - an entrypoint an ambient module exports - reaches F# only in this form.
Fields
Binding: ImportBinding
Binding: ImportBindingThe specifier and name the constructor is imported under, carried at the type level so that Fable's super(...) reaches it.
Parameters: FsParam list
Parameters: FsParam listThe primary constructor's parameters, from the class's first construct signature.
Inherits: FsTypeRef option
Inherits: FsTypeRef optionThe F# base the class derives, rendered as the inherit line of the class form. Some exn where the TypeScript base is Error: a consumer raises the declaration and catches it by type. None where the class has no base F# reaches.