Skip to content

introduce safeAssign that will assign properties if not readonly#624

Open
spassvogel wants to merge 1 commit intopixijs:mainfrom
spassvogel:main
Open

introduce safeAssign that will assign properties if not readonly#624
spassvogel wants to merge 1 commit intopixijs:mainfrom
spassvogel:main

Conversation

@spassvogel
Copy link
Copy Markdown
Contributor

This PR, if you wish to accept it, is a small refactor that has to do with suppressing typescript errors that might rise from setting a readonly prop, making

@ts-expect-error Typescript is grumpy because this could be setting a readonly key, but we're already handling that in the conditional above.

not needed anymore.

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.

1 participant