Skip to content

JSType

ts
type JSType = PrimitiveType | ConstructorType | string;

WARNING

This type is designed for JSTC/JSTypeChecker inputs. It is intentionally practical and not an exhaustive semantic model of JavaScript typing.

Represents a Supported JavaScript type. It can be a primitive type, a constructor type, or a string representing a custom type.

Usage Context

Most consumers pass JSType values to check functions, not as standalone domain models.