Type alias UseObjectHook

UseObjectHook: {
    <T>(options): null | T & Object<T, never>;
    <T>(options): null | T;
    <T>(type, primaryKey, keyPaths?): null | T & Object<T, never>;
    <T>(type, primaryKey, keyPaths?): null | T;
}

Type declaration

    • <T>(options): null | T & Object<T, never>
    • Type Parameters

      • T

      Parameters

      • options: ObjectHookOptions<T>

      Returns null | T & Object<T, never>

    • <T>(options): null | T
    • Type Parameters

      Parameters

      • options: ObjectHookClassBasedOptions<T>

      Returns null | T

    • <T>(type, primaryKey, keyPaths?): null | T & Object<T, never>
    • Type Parameters

      • T

      Parameters

      • type: string
      • primaryKey: T[keyof T]
      • Optional keyPaths: string | string[]

      Returns null | T & Object<T, never>

    • <T>(type, primaryKey, keyPaths?): null | T
    • Type Parameters

      Parameters

      • type: RealmClassType<T>
      • primaryKey: T[keyof T]
      • Optional keyPaths: string | string[]

      Returns null | T

Generated using TypeDoc