Skip to main content

@dldc/chemin@13.0.0
Built and signed on GitHub Actions

A type-safe pattern builder & route matching library written in TypeScript

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
a week ago (13.0.0)
type alias OptionalValue

The match result for pOptional params

Type Parameters

Definition

{ present: false; } | { present: true; value: T; }

Add Package

deno add jsr:@dldc/chemin

Import symbol

import { type OptionalValue } from "@dldc/chemin";

---- OR ----

Import directly with a jsr specifier

import { type OptionalValue } from "jsr:@dldc/chemin";

Add Package

npx jsr add @dldc/chemin

Import symbol

import { type OptionalValue } from "@dldc/chemin";

Add Package

yarn dlx jsr add @dldc/chemin

Import symbol

import { type OptionalValue } from "@dldc/chemin";

Add Package

pnpm dlx jsr add @dldc/chemin

Import symbol

import { type OptionalValue } from "@dldc/chemin";

Add Package

bunx jsr add @dldc/chemin

Import symbol

import { type OptionalValue } from "@dldc/chemin";