Skip to main content

Built and signed on GitHub Actions

Collection of commonly used types

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (0.4.0)
type alias JSONPrimitive

Type alias for JSON primitive values. This includes all the basic types that can be represented in JSON.

Definition

string
| boolean
| number
| null
| undefined

Add Package

deno add jsr:@utility/types

Import symbol

import { type JSONPrimitive } from "@utility/types";

---- OR ----

Import directly with a jsr specifier

import { type JSONPrimitive } from "jsr:@utility/types";

Add Package

npx jsr add @utility/types

Import symbol

import { type JSONPrimitive } from "@utility/types";

Add Package

yarn dlx jsr add @utility/types

Import symbol

import { type JSONPrimitive } from "@utility/types";

Add Package

pnpm dlx jsr add @utility/types

Import symbol

import { type JSONPrimitive } from "@utility/types";

Add Package

bunx jsr add @utility/types

Import symbol

import { type JSONPrimitive } from "@utility/types";