Skip to main content

Built and signed on GitHub Actions

便利なテンプレート文字列ビルダー

This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
2 months ago (1.0.1)
type alias PlaceholderParamaters

プレースホルダが要求する型

Type Parameters

T extends Placeholder[]
Rec extends unknown[] = []

Definition

T extends [infer Head extends Placeholder, ...infer Tail extends Placeholder[]] ? Head extends { kind: "exec"; } ? PlaceholderParamaters<Tail, [...Rec, Parameters<Head["compile"]>[0]]> : Head extends Prim<infer Type extends StringLike, infer HasDefault extends boolean> ? HasDefault extends true ? PlaceholderParamaters<Tail, [...Rec, (Type | (null | undefined))]> : PlaceholderParamaters<Tail, [...Rec, Type]> : never : Rec

Add Package

deno add jsr:@pnsk/template

Import symbol

import { type PlaceholderParamaters } from "@pnsk/template";

---- OR ----

Import directly with a jsr specifier

import { type PlaceholderParamaters } from "jsr:@pnsk/template";

Add Package

npx jsr add @pnsk/template

Import symbol

import { type PlaceholderParamaters } from "@pnsk/template";

Add Package

yarn dlx jsr add @pnsk/template

Import symbol

import { type PlaceholderParamaters } from "@pnsk/template";

Add Package

pnpm dlx jsr add @pnsk/template

Import symbol

import { type PlaceholderParamaters } from "@pnsk/template";

Add Package

bunx jsr add @pnsk/template

Import symbol

import { type PlaceholderParamaters } from "@pnsk/template";