import { Schema } from "effect"; interface LinkMetadata { readonly name: string; readonly link: string; } declare module "effect/Schema" { namespace Annotations { interface Augment { readonly tags?: ReadonlyArray | undefined; readonly links?: ReadonlyArray | undefined; readonly ["x-secret"]?: boolean | undefined; } } } export const stringEnum = >( values: Values, annotations?: Schema.Annotations.Documentation, ) => { const schema = Schema.Literals(values); return annotations === undefined ? schema : schema.annotate(annotations); };