impero-com / typebinder

Exports TS definitions from Rust module
Other
20 stars 2 forks source link

Fix unnecessary quoting for property names #34

Closed AlisCode closed 3 years ago

AlisCode commented 3 years ago

Fixes #23.

Implements a newtype StrictTSIdent that checks for reserved TS keywords, and use it where applicable (that is, a reserved keyword can not be use as an identifier for a type's name), so TSIdent had to go away from our "declarations" type.

Activates the test coverage on TSIdent (because it wasn't the case before, facepalm)