gristlabs / ts-interface-checker

Runtime library to validate data against TypeScript interfaces.
Apache License 2.0
323 stars 18 forks source link

Update readme example not to break `const` #63

Closed keisuke-nakata closed 2 years ago

keisuke-nakata commented 2 years ago

I noticed that the last example in readme has a trouble. Square is already declared as import {Square} from "./foo";, so we can't redefine const {Square} = ... again. I chose name checker without giving it much thought; please fix it with more appropriate one.

alexmojaki commented 2 years ago

Maybe checkers would be better, since it's generally a collection?

alexmojaki commented 2 years ago

@dsagal is that good? If so, you can merge.