mise API - v0.0.0
    Preparing search index...

    Class ChRISResource

    Base class for managing ChRIS resources.

    Index
    • Binds a resource fetching method lazily.

      Parameters

      • objProvider: () => Promise<unknown>

        A function returning a Promise to the object context.

      • methodName: string

        The name of the method to bind.

      • OptionalresourceName: string

        Optional name for the resource.

      Returns void

    • Deletes a resource item by its ID.

      Parameters

      • id: number

        The ID of the item to delete.

      Returns Promise<boolean>

      A Promise resolving to true on success, false otherwise.