revert optional parameters in update

the parameters of callback provided to update can simply be empty
to represent an optional value, restricting with the optional mark prevents
authors from immediately destructuring because it can be undefined
pull/7121/head
Ignatius Bagus 5 years ago committed by GitHub
parent c7adb02743
commit 1614bdc316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
export interface ActionReturn<Parameters = any> {
update?: (parameters?: Parameters) => void;
update?: (parameters: Parameters) => void;
destroy?: () => void;
}

Loading…
Cancel
Save