From ded483fe5d2f537147989c046ffc09633226efc0 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Fri, 26 Aug 2022 07:01:35 -0400 Subject: [PATCH] More explicit argument type definition --- src/types.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/types.ts b/src/types.ts index 35c2213f..fd2abd86 100644 --- a/src/types.ts +++ b/src/types.ts @@ -43,12 +43,12 @@ export type ApiResponse = { export type BaseAuth0APIClient = { actions: APIClientBaseFunctions & { - deploy: ({ id: string }) => Promise; + deploy: (arg0: { id: string }) => Promise; getAllTriggers: () => Promise<{ triggers: Asset[] }>; - getTriggerBindings: ({ trigger_id: string }) => Promise<{ bindings: Asset[] }>; + getTriggerBindings: (arg0: { trigger_id: string }) => Promise<{ bindings: Asset[] }>; updateTriggerBindings: ( - { trigger_id: string }, - { bindings: Object } + arg0: { trigger_id: string }, + arg1: { bindings: Object } ) => Promise<{ bindings: Asset[] }>; }; attackProtection: APIClientBaseFunctions & { @@ -104,10 +104,10 @@ export type BaseAuth0APIClient = { updatePhoneFactorSelectedProvider: (arg0: {}, arg1: Asset) => Promise; }; hooks: APIClientBaseFunctions & { - get: ({ id: string }) => Promise; + get: (arg0: { id: string }) => Promise; removeSecrets: (arg0: {}, arg1: Asset) => Promise; updateSecrets: (arg0: {}, arg1: Asset) => Promise; - getSecrets: ({ id: string }) => Promise>; + getSecrets: (arg0: { id: string }) => Promise>; addSecrets: (arg0: {}, arg1: Asset) => Promise; }; logStreams: APIClientBaseFunctions;