Hierarchy (view full)

Constructors

Properties

Entity: typeof Entity

The entity class for this instance of Nymph.

cache: default

The entity cache.

headers: {
    [k: string]: string;
}

Headers that will be sent with every request.

These are used by Tilmeld for authentication.

Type declaration

  • [k: string]: string
pubsub: undefined | PubSub

And optional PubSub client instance.

Methods

  • Add your class to this instance.

    This will create a class that extends your class within this instance of Nymph and return it. You can then use this class's constructor and methods, which will use this instance of Nymph.

    Because this creates a subclass, don't use the class returned from getEntityClass to check with instanceof.

    Type Parameters

    Parameters

    • entityClass: T

    Returns T

  • Parameters

    • name: string

    Returns Promise<any>

  • Parameters

    • name: string

    Returns Promise<number>

  • Type Parameters

    • T extends unknown

    Parameters

    • item: T

    Returns T

  • Parameters

    • name: string

    Returns Promise<number>

  • Type Parameters

    Parameters

    Returns boolean

  • Type Parameters

    Parameters

    Returns (() => boolean)

      • (): boolean
      • Returns boolean

  • Parameters

    • className: string
    • method: string
    • params: any[]

    Returns Promise<any>

  • Parameters

    • name: string
    • value: number

    Returns Promise<any>