manhinli
Re:A 'CSS reset' for TypeScript, improving types for common JavaScript...
on Friday March 03, 2023 @09:30AM (#35010044)
You can do some pretty powerful stuff with TypeScript types, so you could model it like this: https://www.typescriptlang.org/play?#code/C4TwDgpgBAysBOBLAd...
Re:Show HN: Nothing.js – A chainable mock object which always returns ...
on Saturday March 31, 2018 @08:09PM (#16725885)
Funnily enough, I made something similar a couple of months ago, not as a replacement for a "nothing" value but as a quick-and-dirty object placeholder and black box for tracking function calls.