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 type checking to CI #359

Merged
merged 5 commits into from
May 12, 2023
Merged

Add type checking to CI #359

merged 5 commits into from
May 12, 2023

Conversation

andrewiggins
Copy link
Member

Fix up tsconfig.json and source files so we can start running type checking in CI. I had to change the types of Signals core Effect callback function from returning void to unknown to support a common test (and possible user pattern) of doing a simple inline effect(() => signal.value++); or something like this. We previously required those functions to not return. This change loosens that requirement to the return an unknown. Let me know what you think!

I've left the docs folder as in and didn't address any errors in there.

@changeset-bot
Copy link

changeset-bot bot commented May 1, 2023

🦋 Changeset detected

Latest commit: 9a394fa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@preact/signals-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented May 1, 2023

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit 9a394fa
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/64504d37a163bf00084a7430
😎 Deploy Preview https://deploy-preview-359--preact-signals-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

Size Change: 0 B

Total Size: 68.9 kB

ℹ️ View Unchanged
Filename Size
docs/dist/assets/client.********.js 46.5 kB
docs/dist/assets/index.********.js 835 B
docs/dist/assets/jsxRuntime.module.********.js 282 B
docs/dist/assets/preact.module.********.js 4 kB
docs/dist/assets/signals-core.module.********.js 1.42 kB
docs/dist/assets/signals.module.********.js 1.97 kB
docs/dist/assets/style.********.js 21 B
docs/dist/assets/style.********.css 1.21 kB
docs/dist/basic-********.js 244 B
docs/dist/demos-********.js 3.35 kB
docs/dist/nesting-********.js 1.13 kB
docs/dist/react-********.js 237 B
packages/core/dist/signals-core.js 1.48 kB
packages/core/dist/signals-core.mjs 1.5 kB
packages/preact/dist/signals.js 1.2 kB
packages/preact/dist/signals.mjs 1.15 kB
packages/react/dist/signals.js 1.21 kB
packages/react/dist/signals.mjs 1.15 kB

compressed-size-action

@andrewiggins andrewiggins merged commit 26f6526 into main May 12, 2023
6 checks passed
@andrewiggins andrewiggins deleted the linting-and-type-checking branch May 12, 2023 22:28
@github-actions github-actions bot mentioned this pull request May 12, 2023
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.

None yet

3 participants