Questioning if using `instanceOf` with annotations is an anti-pattern

Is this an Anti-Pattern LOL. In what ways would using Schema.instanceOf(SchemaAST.SomeSchemaAST) be problematic:
import * as SchemaAST from "effect/SchemaAST";
import * as Schema from "effect/Schema";

export const DeclarationMetaSchema = Schema.instanceOf(
  SchemaAST.Declaration,
).annotations({
  identifier: "DeclarationMetaSchema",
  title: "Declaration Meta Schema.",
  description: "An effect schema representing the AST structure of an Schema.declare effect/Schema",
})

export declare namespace DeclarationMetaSchema {
  export type Type = typeof DeclarationMetaSchema.Type;
  export type Encoded = typeof DeclarationMetaSchema.Encoded;
}


What could go wrong?
Was this page helpful?