| ▲ | spartanatreyu 13 hours ago | |||||||
Thanks for the example, I had a good play around with it. The second part of my comment is a value yes, but it's implicitly typed by typescript automatically. I was asking about how to use that type (and it's internals) in jsdoc. | ||||||||
| ▲ | matt_kantor 10 hours ago | parent [-] | |||||||
> it's implicitly typed by typescript automatically What do you mean by this? Can you share an example? Regular expressions do not act as type guards, and there's no way to express a type that allows one regular expression but rejects another (they're all just `RegExp`): https://www.typescriptlang.org/play/?target=5#code/MYewdgzgL... | ||||||||
| ||||||||