Effect CommunityEC
Effect Community2y ago
7 replies
leonitous

Retrieving Annotations from TypeScript Classes

What is the correct way to retrieve annotations from classes?

export class MyClass extends Schema.Class<MyClass>("MyClass")(
    {
        A: Schema.String,
    },
    {
        identifier: "MyClass",
        title: "my.Class",
    }
) {}

// { _id: 'Option', _tag: 'None' }
console.log(AST.getTitleAnnotation(MyClass.ast));
Was this page helpful?