- Preparing search index...
- The search index is not available
@bemoje/source
Type alias TLengthOfString<S, Acc>
TLengthOfString<S, Acc>: S extends `${string}${infer $Rest}` ? TLengthOfString<$Rest, [...Acc, 0]> : Acc["length"]
Type Parameters
-
S extends string
-
Acc extends 0[] = []
Type that returns the length of a string.