(
str: T,
)
| 153 | } |
| 154 | |
| 155 | export const splitOnColon = <T extends string>( |
| 156 | str: T, |
| 157 | ): T extends `${infer L}:${infer R}` ? [L, R] : [T, null] => { |
| 158 | const splitIndex = str.indexOf(':') |
| 159 | if (splitIndex === -1) return [str, null] as any |
| 160 | return [str.slice(0, splitIndex), str.slice(splitIndex + 1)] as any |
| 161 | } |
| 162 | |
| 163 | export function whileArray<T, U>( |
| 164 | toCheck: T[], |
no outgoing calls
no test coverage detected
searching dependent graphs…