import { type SchemaTypeOf } from "https://deno.land/x/enzastdlib@v0.0.4/schema/types.ts";
Returns the JSON Schema type of a specified JavaScript type.
Examples
Example 1
Example 1
import type { SchemaTypeOf } from 'https://deno.land/x/enzastdlib/schema/mod.ts';
const my_string = 'Hello World!';
type MyStringSchemaType = SchemaTypeOf<typeof my_string>; // "string"
Type Parameters
Type extends JsonValue