Recently I'd been promoting a small project of mine called TypeLib JS. I also decided that I want to create video content... so I thought this was ...
For further actions, you may consider blocking this person and/or reporting abuse
Looks like a fantastic tool to guard against changing data in APIs. For someone who wants to stick to using JS for the flexibility but wants the type guarantees, this seems like a wonderful library. Thanks for sharing! ^^
Hey, thanks!
Yeah, that is one of the main purposes of the library, actually one of the main features is that it can make debugging easier. For example:
*You can test this if you go the page project, open your browser console and paste this code snippet (except for the import statement). You can also try to pass a blob to test it (
new Blob(["My file content"])).I think on Thursday I'll publish a post giving further details about this feature. Thanks for your feedback! 😉
Very cool, ran it through the console, throws the error, then I can handle it any way I want. Definitely let me know when the post is available!
Thanks! I just published it! link to the post