Skip to content

JSTC

Runtime JS Type Checker with Protection Levels.

Runtime Validation, Not Static Types

JSTC validates values at runtime. It does not replace TypeScript compile-time checks.

Pages

Quick Start

ts
import { JSTC } from "@briklab/lib/jstc";

JSTC.setProtectionLevel("boundary");
const isValid = JSTC.for([42]).check(["number"]); // true

Notes

  • Use JSTypeChecker when you need isolated checker instances.
  • Use JSTC when a singleton checker is sufficient.

Diagram

100%Ctrl + wheel to zoom