Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic type definitions #32

Merged
merged 4 commits into from
May 10, 2024
Merged

Basic type definitions #32

merged 4 commits into from
May 10, 2024

Conversation

lostrepo
Copy link
Contributor

@lostrepo lostrepo commented May 5, 2024

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

lostrepo added 4 commits May 5, 2024 10:56
typedef based on usage only
see lib/gen.js to form proper typedef
downside - marked as readonly const object
@billywhizz billywhizz self-requested a review May 10, 2024 00:43
@billywhizz billywhizz self-assigned this May 10, 2024
@billywhizz billywhizz merged commit e284279 into just-js:main May 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants