Closed as not planned
Closed as not planned
Description
π Search Terms
template literal infer
, literal infer
, infer match
π Version & Regression Information
This changed between versions 4.6.4
and 4.7.4
. Doesn't no work in 5.2.2
nor nightly
.
β― Playground Link
π» Code
type InferDelimiter<
T extends string,
Delimiter extends string,
> = T extends `${infer Head}${infer Mark extends Delimiter}${string}` ? true : false;
type T1 = InferDelimiter<'foo.bar', '.'>;
π Actual behavior
T1
is evaluated to false
.
π Expected behavior
T1
is evaluated to true
.
Additional information about the issue
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment