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

Inspectable options fix #12669

Merged
merged 3 commits into from
Jun 21, 2022
Merged

Conversation

GordonTombola
Copy link
Contributor

@GordonTombola GordonTombola commented Jun 21, 2022

Custom inspectables could not be provided with an appropriate options array as the type was either undefined or empty array, this way it can be undefined or an array of IInspectableOptions

Here is an example of being forced to use "as any" with current babylonjs in typescript when using the custom inspectable type options, when removing the "as any" this will break:
https://playground.babylonjs.com/#LTH16U

Here is an example with the snapshot where we aren't forced to use "as any":
https://playground.babylonjs.com/?snapshot=refs/pull/12669/merge#TCE5N9

previously could only supply an empty array or undefined to the options property of an instance of type IInspectable
@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

There is no need to update the "what's new.md" file. A changelog will be generated using the PR and its tags.

@azure-pipelines
Copy link

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

@sebavan sebavan merged commit 0f89087 into BabylonJS:master Jun 21, 2022
@sebavan sebavan added the bug label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants