just-js / lo

it's JavaScript Jim, but not as we know it. :space_invader:
MIT License
241 stars 10 forks source link

Basic type definitions #32

Closed lostrepo closed 6 months ago

lostrepo commented 7 months ago

Replaced jsconfig with tsconfig (was unable to remove external garbage types from @types/node in jsconfig)
Added types for lo, lo.core is not fully typed, lib/<module> not typed at all
Changed lo init to use that working tsconfig and README.md as quick start guide for initialized project
Added type hints for api definitions in lib/<module>api.js using typed passthrough function (types are based on current usage samples, not on consumer of those objects). Should help editor with string literal hints when we add new lib definitions