Options
All
  • Public
  • Public/Protected
  • All
Menu

Runtime representation of a Javascript type that can be cast from a subject property object (a JSON-LD value).

see

JsAtomType

see

JsContainerType

Type parameters

  • T

  • S

Hierarchy

Index

Properties

Accessors

Methods

Properties

Static statics

statics: Map<PropertyType<any>, Map<undefined | (StringConstructor & {}) | (BooleanConstructor & {}) | (NumberConstructor & {}) | (DateConstructor & {}) | (Uint8ArrayConstructor & {}) | (ReferenceConstructor & {}) | (VocabReferenceConstructor & {}) | (SubjectConstructor & {}), JsType<any, unknown>>> = new Map<PropertyType<any>, Map<AtomType<any> | undefined, JsType<any>>>

Accessors

type

  • get type(): [PropertyType<T>, undefined | (StringConstructor & {}) | (BooleanConstructor & {}) | (NumberConstructor & {}) | (DateConstructor & {}) | (Uint8ArrayConstructor & {}) | (ReferenceConstructor & {}) | (VocabReferenceConstructor & {}) | (SubjectConstructor & {})]
  • Returns [PropertyType<T>, undefined | (StringConstructor & {}) | (BooleanConstructor & {}) | (NumberConstructor & {}) | (DateConstructor & {}) | (Uint8ArrayConstructor & {}) | (ReferenceConstructor & {}) | (VocabReferenceConstructor & {}) | (SubjectConstructor & {})]

    Raw Javascript type information

Methods

Abstract cast

  • Casts a property value to this JavaScript type.

    throws

    TypeError if the given value does not have the correct type

    Parameters

    Returns ValueConstructed<T, S>

Static for

  • Obtains a static, shared type representation for the given parameters.

    Type parameters

    • T

    • S

    Parameters

    • type: PropertyType<T>

      the atom type or container type

    • Optional subType: AtomType<S>

      the atom type, if type is a container (else ignored)

    Returns JsType<T, S>

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Static property
  • Static method
  • Protected method

Generated using TypeDoc. Delivered by Vercel. @m-ld/m-ld - v0.9.0 Source code licensed MIT. Privacy policy