Skip to main content
Module

x/rimbu/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@0.14.0/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]