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

x/natico/examples/deps.ts>Split

A powerful and customizable framework for Discordeno
Latest
type alias Split
import { type Split } from "https://deno.land/x/natico@4.0.0-pre.4/examples/deps.ts";

Type Parameters

S extends string
D extends string
definition: string extends S ? string[] : S extends "" ? [] : S extends `${infer T}${D}${infer U}` ? [T, ...Split<U, D>] : [S]