-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Tighten allowed type for object prop on primitives #2654
Merged
CodyJasonBennett
merged 1 commit into
pmndrs:master
from
Methuselah96:narrow-primitive-object-prop
Dec 7, 2022
Merged
Tighten allowed type for object prop on primitives #2654
CodyJasonBennett
merged 1 commit into
pmndrs:master
from
Methuselah96:narrow-primitive-object-prop
Dec 7, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 43e3c40:
|
Thanks. I've been looking into whether we can have primitive props inferred from |
renovate bot
referenced
this pull request
in ziyadedher/ziyadedher
Dec 29, 2022
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@react-three/fiber](https://github.com/pmndrs/react-three-fiber) | [`8.9.1` -> `8.9.2`](https://renovatebot.com/diffs/npm/@react-three%2ffiber/8.9.1/8.9.2) | [![age](https://badges.renovateapi.com/packages/npm/@react-three%2ffiber/8.9.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@react-three%2ffiber/8.9.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@react-three%2ffiber/8.9.2/compatibility-slim/8.9.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@react-three%2ffiber/8.9.2/confidence-slim/8.9.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pmndrs/react-three-fiber</summary> ### [`v8.9.2`](https://github.com/pmndrs/react-three-fiber/releases/tag/v8.9.2) [Compare Source](https://github.com/pmndrs/react-three-fiber/compare/v8.9.1...v8.9.2) #### What's Changed - chore(docs): update objects.mdx by [@​yikayiyo](https://github.com/yikayiyo) in [https://github.com/pmndrs/react-three-fiber/pull/2616](https://github.com/pmndrs/react-three-fiber/pull/2616) - chore(docs): fix broken link to react-three-rapier by [@​nhemsley](https://github.com/nhemsley) in [https://github.com/pmndrs/react-three-fiber/pull/2627](https://github.com/pmndrs/react-three-fiber/pull/2627) - chore(docs): very small typo (useFrame) by [@​benlazzero](https://github.com/benlazzero) in [https://github.com/pmndrs/react-three-fiber/pull/2651](https://github.com/pmndrs/react-three-fiber/pull/2651) - fix(types): tighten allowed type for object prop on primitives by [@​Methuselah96](https://github.com/Methuselah96) in [https://github.com/pmndrs/react-three-fiber/pull/2654](https://github.com/pmndrs/react-three-fiber/pull/2654) - fix: primitives are incorrectly swapped on key change in maps by [@​bodo22](https://github.com/bodo22) in [https://github.com/pmndrs/react-three-fiber/pull/2680](https://github.com/pmndrs/react-three-fiber/pull/2680) #### New Contributors - [@​yikayiyo](https://github.com/yikayiyo) made their first contribution in [https://github.com/pmndrs/react-three-fiber/pull/2616](https://github.com/pmndrs/react-three-fiber/pull/2616) - [@​nhemsley](https://github.com/nhemsley) made their first contribution in [https://github.com/pmndrs/react-three-fiber/pull/2627](https://github.com/pmndrs/react-three-fiber/pull/2627) - [@​benlazzero](https://github.com/benlazzero) made their first contribution in [https://github.com/pmndrs/react-three-fiber/pull/2651](https://github.com/pmndrs/react-three-fiber/pull/2651) - [@​bodo22](https://github.com/bodo22) made their first contribution in [https://github.com/pmndrs/react-three-fiber/pull/2680](https://github.com/pmndrs/react-three-fiber/pull/2680) **Full Changelog**: pmndrs/react-three-fiber@v8.9.1...v8.9.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/ziyadedher/ziyadedher). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNzQuMiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
ziyadedher
referenced
this pull request
in ziyadedher/ziyadedher
Dec 16, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@react-three/fiber](https://github.com/pmndrs/react-three-fiber) | [`8.9.1` -> `8.9.2`](https://renovatebot.com/diffs/npm/@react-three%2ffiber/8.9.1/8.9.2) | [![age](https://badges.renovateapi.com/packages/npm/@react-three%2ffiber/8.9.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@react-three%2ffiber/8.9.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@react-three%2ffiber/8.9.2/compatibility-slim/8.9.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@react-three%2ffiber/8.9.2/confidence-slim/8.9.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pmndrs/react-three-fiber</summary> ### [`v8.9.2`](https://github.com/pmndrs/react-three-fiber/releases/tag/v8.9.2) [Compare Source](https://github.com/pmndrs/react-three-fiber/compare/v8.9.1...v8.9.2) #### What's Changed - chore(docs): update objects.mdx by [@​yikayiyo](https://github.com/yikayiyo) in [https://github.com/pmndrs/react-three-fiber/pull/2616](https://github.com/pmndrs/react-three-fiber/pull/2616) - chore(docs): fix broken link to react-three-rapier by [@​nhemsley](https://github.com/nhemsley) in [https://github.com/pmndrs/react-three-fiber/pull/2627](https://github.com/pmndrs/react-three-fiber/pull/2627) - chore(docs): very small typo (useFrame) by [@​benlazzero](https://github.com/benlazzero) in [https://github.com/pmndrs/react-three-fiber/pull/2651](https://github.com/pmndrs/react-three-fiber/pull/2651) - fix(types): tighten allowed type for object prop on primitives by [@​Methuselah96](https://github.com/Methuselah96) in [https://github.com/pmndrs/react-three-fiber/pull/2654](https://github.com/pmndrs/react-three-fiber/pull/2654) - fix: primitives are incorrectly swapped on key change in maps by [@​bodo22](https://github.com/bodo22) in [https://github.com/pmndrs/react-three-fiber/pull/2680](https://github.com/pmndrs/react-three-fiber/pull/2680) #### New Contributors - [@​yikayiyo](https://github.com/yikayiyo) made their first contribution in [https://github.com/pmndrs/react-three-fiber/pull/2616](https://github.com/pmndrs/react-three-fiber/pull/2616) - [@​nhemsley](https://github.com/nhemsley) made their first contribution in [https://github.com/pmndrs/react-three-fiber/pull/2627](https://github.com/pmndrs/react-three-fiber/pull/2627) - [@​benlazzero](https://github.com/benlazzero) made their first contribution in [https://github.com/pmndrs/react-three-fiber/pull/2651](https://github.com/pmndrs/react-three-fiber/pull/2651) - [@​bodo22](https://github.com/bodo22) made their first contribution in [https://github.com/pmndrs/react-three-fiber/pull/2680](https://github.com/pmndrs/react-three-fiber/pull/2680) **Full Changelog**: pmndrs/react-three-fiber@v8.9.1...v8.9.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/ziyadedher/ziyadedher). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNzQuMiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Primitives can only be rendered from objects, this helps catch mistakenly passing in
null
orundefined
into theobject
prop.