mobx-keystone
    Preparing search index...

    Variable customRefConst

    customRef: <T extends object>(
        modelTypeId: string,
        options: CustomRefOptions<T>,
    ) => RefConstructor<T> = ...

    Creates a custom ref to an object, which in its snapshot form has an id.

    Type declaration

      • <T extends object>(
            modelTypeId: string,
            options: CustomRefOptions<T>,
        ): RefConstructor<T>
      • Type Parameters

        • T extends object

          Target object type.

        Parameters

        • modelTypeId: string

          Unique model type id.

        • options: CustomRefOptions<T>

          Custom reference options.

        Returns RefConstructor<T>

        A function that allows you to construct that type of custom reference.