You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Characters count as both prefix and suffix of pattern literal #40772
It's great that in dev you can use string as a value placeholder! This is a marked improvement from beta.
The ability to define a prefix or suffix for a key is very valuable, but currently neither of these usecases work:
type CustomProps = Record<`x${string}`, any>;
const a: CustomProps = {};
a.x11 = ''; // ERRORS OUT
type CustomProps ={[key: `x${string}`]: any}; // ERRORS, key must be string or number
const a: CustomProps = {};
Activity
jamesmfriedman commentedon Sep 28, 2020
Related to this issue,
stringas a value placeholder! This is a marked improvement from beta.Would be amazing if this could work!