Skip to main content
Deno 2 is finally here 🎉️
Learn more

type_system

deno doc

Type-safe custom type systems in TypeScript.

Usage

import type {
  Schema,
  System,
} from "https://deno.land/x/type_system@$VERSION/mod.ts";

const SCHEMA = {
  deno_deploy: {
    project_name: "string",
  },
  google_sheets: {
    sheet_id: "string",
  },
} as const satisfies Schema;

const system: System<typeof SCHEMA> = {
  components: [
    {
      kind: "deno_deploy",
      project_name: "string",
    },
    {
      kind: "google_sheets",
      sheet_id: "string",
    },
  ],
};

console.log(system);

Development

Make sure to install Deno: https://deno.land/manual/getting_started/installation.

Format the project:

deno fmt

Lint the project:

deno lint

Run tests:

deno test

Update dependencies:

deno task udd

License

LICENSE


Developed with 💖 by @EthanThatOneKid