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
Payloads cannot be optional by design. IMO it is a bad practice. You can set your payload type as a union undefined | boolean though you would still need to call function with an argument.
type PayloadDictionary = {
init: boolean;
// ^^^^^^ want to be optional, like readOnly?: boolean
}
The text was updated successfully, but these errors were encountered: