-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
chore: BlurFilter null type checks #11710
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
base: dev
Are you sure you want to change the base?
chore: BlurFilter null type checks #11710
Conversation
previously it was undefined being converted to false
corrected defaultOptions types for BlurFilterPass and BlurFilter
…o blur-filter-null-typechecks
|
pixi.js-base • pixi.js-bunny-mark commit: |
|
Hi! I have some thoughts:
|
|
The goal in #8852 is to get the typescript to be pass with the @mayakwd Read over your feedback and made some changes.
Default Options Pattern ProblemThere is an issue with the This revealed that static properties in extended classes have to also extend the type in ts. So to be valid it needs to be like this: class export class BlurFilter extends Filter
{
public static defaultOptions: BlurFilterDefaultOptions = {
...Filter.defaultOptions,
strength: 8,
quality: 4,
kernelSize: 5,
};
}So the Currently the code is written so that (in most cases) constructor options arg and ConclusionsWriting ts with If the #8852 chore is no longer desired then it should be closed. Maybe other areas can be improved but leave the |
Description of change
Progress on #8852
Corrections:
Pre-Merge Checklist
npm run lint)npm run test)