From 083b98b87e7259882d9c91dad97cb61818976de4 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Wed, 30 Aug 2023 01:10:44 +0000 Subject: [PATCH] wip: type updates --- packages/snaps-utils/src/cronjob.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/snaps-utils/src/cronjob.ts b/packages/snaps-utils/src/cronjob.ts index e820d5df1b..083c9156f2 100644 --- a/packages/snaps-utils/src/cronjob.ts +++ b/packages/snaps-utils/src/cronjob.ts @@ -19,15 +19,15 @@ import { export const CronjobRpcRequestStruct: Struct< { method: string; - params?: Record | Json[] | undefined; - id?: string | number | null | undefined; - jsonrpc?: '2.0' | undefined; + params?: Record | Json[]; + id?: string | number | null; + jsonrpc?: '2.0'; }, { - params: Struct | Json[] | undefined, null>; + params?: Struct | Json[], null>; method: Struct; - id: Struct; - jsonrpc: Struct<'2.0' | undefined>; + id?: Struct; + jsonrpc?: Struct<'2.0'>; } > = assign( partial(pick(JsonRpcRequestStruct, ['id', 'jsonrpc'])),