Module

x/just_my_type/main.ts>default

Derives typescript types from JS objects
Latest
class default
import { default } from "https://dotland.deno.dev/x/just_my_type@0.0.1/main.ts";

Constructors

new
default(typeName: string)

Properties

modelsByKey: Record<string, MetaModel>
typeName: string

Methods

private
computeArrayMetaModel(
name: string,
items: unknown[],
modelsByKey: Record<string, MetaModel>,
): MetaModel
private
findBestModel(
name: string,
item: unknown,
modelsByKey: Record<string, MetaModel>,
): MatchModel
private
getBasicMetaModel(name: string, type: BasicType): ConcreteMetaModel
private
getCompoundMetaModel(
name: string,
type: CompoundType,
value: unknown,
): ConcreteMetaModel
private
getMetaModel(name: string, value: unknown)
observe(thing: unknown)