@dxos/echo
    Preparing search index...

    Variable makeConst

    make: <T>(props: MakeProps<T>) => Annotation.Annotation<T> = internalAnnotations.makeUserAnnotation

    Create a new schema annotation. Annotation can be assigned both to fields and to the schema itself. Annotation is serialized with the schema.

    Type declaration

    const ColorAnnotation = Annotation.make({
    id: 'org.dxos.annotation.color',
    schema: Schema.String,
    });

    const schema = Schema.String.annotate(ColorAnnotation.set('red'));

    O(1) at definition time; validates the id format.