From 1614bdc31679b0e5d506e16f5ab6d3f4f2e62732 Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Wed, 12 Jan 2022 15:56:27 +0700 Subject: [PATCH] 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 --- src/runtime/action/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/action/index.ts b/src/runtime/action/index.ts index 97e7ca3da0..3292508505 100644 --- a/src/runtime/action/index.ts +++ b/src/runtime/action/index.ts @@ -1,5 +1,5 @@ export interface ActionReturn { - update?: (parameters?: Parameters) => void; + update?: (parameters: Parameters) => void; destroy?: () => void; }