You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when I want to pass some options, I'm required to provide filter even when I have no custom filter to provide.
Offending code
app.use(shrinkRay({brotli: {mode: 11,},}),);
Error message:
Argument of type '{ brotli: { mode: number; }; }' is not assignable to parameter of type 'ShrinkRayOptions'.
Property 'filter' is missing in type '{ brotli: { mode: number; }; }' but required in type 'ShrinkRayOptions'.ts(2345)
Hello and thank you for your work.
I noticed that when I want to pass some
options
, I'm required to providefilter
even when I have no customfilter
to provide.Offending code
Error message:
Workaround
I could do this:
but it strikes me as awkward and slightly redundant since adding
filter: shrinkRay.filter
doesn't affect the functionality in any way.Solution
This:
shrink-ray/index.d.ts
Line 17 in f7cfcc7
should be changed to:
What do you think?
The text was updated successfully, but these errors were encountered: