Primitive
A type that defines JavaScript's basic primitive types. Composed as a union type that includes all primitive types.
Interface
typescript
type Primitive =
| string
| number
| boolean
| symbol
| bigint
| null
| undefined;
Usage
typescript
import { Primitive } from '@modern-kit/types';
const stringValue: Primitive = 'hello';
const numberValue: Primitive = 42;
const booleanValue: Primitive = true;
const symbolValue: Primitive = Symbol('key');
const bigIntValue: Primitive = 123n;
const nullValue: Primitive = null;
const undefinedValue: Primitive = undefined;