Hyperlinkv0.8.0-beta.28

SchemaRepresentation

SchemaRepresentation.CodeDocumenttypeeffect/SchemaRepresentation.ts:2314
CodeDocument

The output of toCodeDocument: generated TypeScript code for one or more schemas plus their shared references and auxiliary artifacts.

Details

codes contains one Code per input representation. references.nonRecursives contains topologically sorted non-recursive definitions. references.recursives contains definitions involved in cycles. artifacts contains symbols, enums, and import statements needed by the code.

export type CodeDocument = {
  readonly codes: ReadonlyArray<Code>
  readonly references: {
    readonly nonRecursives: ReadonlyArray<{
      readonly $ref: string
      readonly code: Code
    }>
    readonly recursives: {
      readonly [$ref: string]: Code
    }
  }
  readonly artifacts: ReadonlyArray<Artifact>
}
Referenced by 1 symbols