-
When defining
The only way I found to fix it, was using await enqueueLinks({
selector: prodGridSel,
label: "products",
transformRequestFunction: (request) => {
(request.userData as any).category = cat as string;
return request;
},
}); Is there a better way to avoid this typing error? |
Beta Was this translation helpful? Give feedback.
Answered by
B4nan
Mar 29, 2023
Replies: 1 comment 1 reply
-
Yes, just add
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
matrs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, just add
!
:https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#non-null-assertion-operator-postfix-