Would be nice to have a type that does something this:
const escaped: Escape<'abc.def ghi', '.' | ' ', '\\'> = 'abc\.def\ ghi'
Or maybe more like
const escaped: Escape<'abc.def ghi', { '.': '\\.'; ' ': '\\ ' }> = 'abc\.def\ ghi'
Could be a thin-ish Replace
wrapper, maybe?
Use case: dot-prop style properties
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too