@dxos/echo
    Preparing search index...

    Function make

    • Creates a new echo object of the given schema or Type.Type.

      Type Parameters

      Parameters

      • type: T
      • props: NoInfer<Obj.MakeProps<T>>

        Object properties.

      • Optionaloptions: MakeOptions

        See MakeOptions.

        Meta can be passed as a symbol in props.

        Example:

        const obj = Obj.make(Person, { [Obj.Meta]: { keys: [...] }, name: 'John' });
        

        Note: Only accepts object schemas / object-kind types, not relation schemas. Use Relation.make for relations.

      Returns Obj.OfShape<InstanceType<T>>

      O(n) in props size; validates props against the schema and allocates a reactive proxy, with no database I/O.