interface ResourceDataClient {
    destroy(): void;
    query<T>(query: ResourceDataQuery<T> | [ResourceDataQuery<T>], listener: ((results: [ResourceDataResult<ResultDataMap[T]>]) => any)): (() => void);
    query<T1, T2>(query: [ResourceDataQuery<T1>, ResourceDataQuery<T2>], listener: ((results: [ResourceDataResult<ResultDataMap[T1]>, ResourceDataResult<ResultDataMap[T2]>]) => any)): (() => void);
    query<T1, T2, T3>(query: [ResourceDataQuery<T1>, ResourceDataQuery<T2>, ResourceDataQuery<T3>], listener: ((results: [ResourceDataResult<ResultDataMap[T1]>, ResourceDataResult<ResultDataMap[T2]>, ResourceDataResult<ResultDataMap[T3]>]) => any)): (() => void);
    query<T1, T2, T3, T4>(query: [ResourceDataQuery<T1>, ResourceDataQuery<T2>, ResourceDataQuery<T3>], listener: ((results: [ResourceDataResult<ResultDataMap[T1]>, ResourceDataResult<ResultDataMap[T2]>, ResourceDataResult<ResultDataMap[T3]>, ResourceDataResult<ResultDataMap[T4]>]) => any)): (() => void);
    query<T1, T2, T3, T4>(query: [ResourceDataQuery<T1>, ResourceDataQuery<T2>, ResourceDataQuery<T3>, ResourceDataQuery<T4>], listener: ((results: [ResourceDataResult<ResultDataMap[T1]>, ResourceDataResult<ResultDataMap[T2]>, ResourceDataResult<ResultDataMap[T3]>, ResourceDataResult<ResultDataMap[T4]>]) => any)): (() => void);
    query<T1, T2, T3, T4, T5>(query: [ResourceDataQuery<T1>, ResourceDataQuery<T2>, ResourceDataQuery<T3>, ResourceDataQuery<T4>, ResourceDataQuery<T5>], listener: ((results: [ResourceDataResult<ResultDataMap[T1]>, ResourceDataResult<ResultDataMap[T2]>, ResourceDataResult<ResultDataMap[T3]>, ResourceDataResult<ResultDataMap[T4]>, ResourceDataResult<ResultDataMap[T5]>]) => any)): (() => void);
    render(templates: ResourceDataTemplateQuery[], listener: ((results: string[]) => void)): (() => void);
    update<T>(update: ResourceDataUpdate<T>): Promise<void>;
}

Methods

  • Destroy the client. Always call this when the client is not used anymore. When the context is destroyed, this is called automatically

    Returns void

  • Parameters

    • templates: ResourceDataTemplateQuery[]
    • listener: ((results: string[]) => void)
        • (results): void
        • Parameters

          • results: string[]

          Returns void

    Returns (() => void)

    Returns a deregistration function for the listener.

      • (): void
      • Returns void

  • Type Parameters

    • T extends "AssetAppConfig"

    Parameters

    Returns Promise<void>

    Returns a promise that resolves when the update succeeds.