Sha256: 035c74cad659923dd64bf6d84038675b352adca39eb1db2c5fb2aaad706ddb06
Contents?: true
Size: 331 Bytes
Versions: 64
Compression:
Stored size: 331 Bytes
Contents
/** Recursively split a string literal into two parts on the first occurence of the given string, returning an array literal of all the separate parts. */ export type Split<S extends string, D extends string> = string extends S ? string[] : S extends '' ? [] : S extends `${infer T}${D}${infer U}` ? [T, ...Split<U, D>] : [S];
Version data entries
64 entries across 64 versions & 4 rubygems