Type alias sanitizeResult<V, C, R, M>
sanitizeResult<V, C, R, M>: V extends null | undefined ? V : R extends ensureChar<R> ? charGroups<C> extends parseableRange ? V extends string | number ? ensureNonEmpty<_replace<_trimMode<_case<stringify<V>, C>, C, M>, C, R>> : string : never : never
Type Parameters
-
V
-
C extends string
-
R extends string
-
Transforms sanitizeLiteral function parameters to provide an expected result type for a given set of literals.