From 7d877bbe0862c2a9acadc6a91a3ee532d217d41b Mon Sep 17 00:00:00 2001 From: MO Thibault <103271673+MO-Thibault@users.noreply.github.com> Date: Fri, 30 Oct 2026 13:34:31 -0400 Subject: [PATCH] addons: declare the optional arguments of installGPTEventListeners and tryIdentifyFromParams Both methods accept optional arguments (eventSpec; key and prefix), and the README documents calling them with those arguments, but their module augmentations declared them as () => void. TypeScript consumers copying the documented calls got "Expected 0 arguments". Types only; no runtime change. Co-Authored-By: Claude Opus 5.5 --- lib/addons/gpt.ts | 2 +- lib/addons/try-identify.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/addons/gpt.ts b/lib/addons/gpt.ts index ba450e20..da05683d 100644 --- a/lib/addons/gpt.ts +++ b/lib/addons/gpt.ts @@ -6,7 +6,7 @@ import OptableSDK from "../sdk"; declare module "../sdk" { export interface OptableSDK { - installGPTEventListeners: () => void; + installGPTEventListeners: (eventSpec?: GptEventSpec) => void; installGPTSecureSignals: (...signals: SecureSignal[]) => void; } } diff --git a/lib/addons/try-identify.ts b/lib/addons/try-identify.ts index 8e4262fb..e24ff7ed 100644 --- a/lib/addons/try-identify.ts +++ b/lib/addons/try-identify.ts @@ -2,7 +2,7 @@ import OptableSDK from "../sdk"; declare module "../sdk" { export interface OptableSDK { - tryIdentifyFromParams: () => void; + tryIdentifyFromParams: (key?: string, prefix?: string) => void; } }