class TypeDefinition
implements Annotated
extends AbstractNode
Re-export
import { TypeDefinition } from "https://deno.land/x/apex_core@v0.1.2/ast/mod.ts";
Constructors
new
TypeDefinition(loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
interfaces: Named[],
annotations: Annotation[],
fields: FieldDefinition[],
Properties
annotations: Annotation[]
optional
description: StringValuefields: FieldDefinition[]
interfaces: Named[]
name: Name
Methods
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined
Constructors
new
TypeDefinition(loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
interfaces: Named[],
annotations: Annotation[],
fields: FieldDefinition[],
Properties
annotations: Annotation[]
optional
description: StringValuefields: FieldDefinition[]
interfaces: Named[]
name: Name
Methods
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined