79134415

Date: 2024-10-28 17:09:28
Score: 0.5
Natty:
Report link

If I understand you correctly, your question aims at having TS autocompleting for parts of a string.

I do not think this is possible.

const noAutoCompletion : `foo-${string}` = 'foo-bar';
const hasAutoCompletion : 'foo-bar' = 'foo-bar';
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: quentinkrammer