Skip to main content
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
41%
Published
4 months ago (0.0.35)
class CoreContext

Constructors

new
CoreContext(unnamed 0: CoreContextArgs)

Properties

readonly
files: Map<string, FileContents>
reporter: Reporter
readonly
schemaModel: OasDocument
readonly
settings: Settings
readonly
typeSystemInfo: Omit<TypeSystem, "create">

Methods

addFile(normalisedPath: string): FileContents
error(args: Omit<ReportArgs, "level" | "phase">): never
getFile(filePath: string): FileContents
info(args: Omit<ReportArgs, "level" | "phase">): void
register(unnamed 0: RegisterArgs): void
render(options: RenderOptions): Promise<Record<string, string>>
private
report(unnamed 0: Omit<ReportArgs, "phase">): void
setupRenderPhase(unnamed 0: RenderArgs): void
toInferType(value: Stringable): Stringable
toTypeSystem(unnamed 0: ToTypeSystemArgs): Stringable
warn(args: Omit<ReportArgs, "level" | "phase">): void

Static Methods

Add Package

deno add @schematicos/codegen

Import symbol

import { CoreContext } from "@schematicos/codegen/CoreContext.ts";

Add Package

npx jsr add @schematicos/codegen

Import symbol

import { CoreContext } from "@schematicos/codegen/CoreContext.ts";

Add Package

yarn dlx jsr add @schematicos/codegen

Import symbol

import { CoreContext } from "@schematicos/codegen/CoreContext.ts";

Add Package

pnpm dlx jsr add @schematicos/codegen

Import symbol

import { CoreContext } from "@schematicos/codegen/CoreContext.ts";

Add Package

bunx jsr add @schematicos/codegen

Import symbol

import { CoreContext } from "@schematicos/codegen/CoreContext.ts";