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

Add Luau types for thunks and the store #71

Merged
merged 8 commits into from
Jun 13, 2022

Conversation

jkelaty-rbx
Copy link
Contributor

@jkelaty-rbx jkelaty-rbx commented Jun 9, 2022

Follows up on the types added in: #70.

Adds Luau types for thunks and the store. This is partially inspired by upstream Redux types here and here, but modified to be as useful as possible given Luau's constraints.

@jkelaty-rbx jkelaty-rbx marked this pull request as ready for review June 9, 2022 20:32
src/types/store.lua Outdated Show resolved Hide resolved
@matthargett
Copy link
Contributor

Can we enable !strict on the tests in the repo and/or add a .luaurc file, using https://github.com/JohnnyMorganz/luau-analyze-rojo to verify clean analysis in CI?

@github-actions
Copy link

github-actions bot commented Jun 9, 2022

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Contributor

@ZoteTheMighty ZoteTheMighty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the ideas here seem reasonable, but it looks like we're exposing a bit more type surface than we ought to

src/init.lua Show resolved Hide resolved
src/init.lua Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Jun 10, 2022

Coverage Status

Coverage increased (+0.01%) to 99.237% when pulling 929c1de on jkelaty-rbx:thunks-store-luau-types into 07f634e on Roblox:master.

Copy link
Contributor

@ZoteTheMighty ZoteTheMighty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@jkelaty-rbx
Copy link
Contributor Author

@ZoteTheMighty Can you merge this please?

@ZoteTheMighty ZoteTheMighty merged commit ce63e3d into Roblox:master Jun 13, 2022
@jkelaty-rbx jkelaty-rbx deleted the thunks-store-luau-types branch June 22, 2022 17:23
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.

4 participants