4 ms·Hear me out: if you need to do this just to use a tool effectively, maybe it's a bad tool.by rglover 3y agoHear me out: if you need to do this just to use a tool effectively, maybe it's a bad tool.wruza 3y agoWe're open to suggestions!rglover 3y agoIn this specific context: just use plain JavaScript with default args and your own, inline type checker functions. No need for stuff like this and you can customize type checks to your heart's content.