Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/mod.ts>Deep.Path.Internal.AppendIfNotEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Deep.Path.Internal.AppendIfNotEmpty
import { type Deep } from "https://deno.land/x/rimbu@1.2.0/core/mod.ts";
const { AppendIfNotEmpty } = Deep.Path.Internal;

Utility type to only add non-empty string types to a string array.

Type Parameters

A extends string[]
T extends string
definition: T extends "" ? A : [...A, T]