@dxos/echo
    Preparing search index...

    Function getType

    • Get the type entity (Type.AnyEntity) the instance was created from.

      Returns undefined when the entity's type isn't registered in this runtime (e.g. a freshly deserialized snapshot whose type entity hasn't been wired up yet, or an entity loaded from storage before its schema is known). To get the Effect Schema from the returned entity, use Type.getSchema(...).

      For a type entity, returns the meta-type Type.Type (a type entity's type is "Type").

      Parameters

      Returns undefined | AnyEntity

      O(1) read of the type back-reference.