Skip to content

Commit 39ab2f2

Browse files
authored
Type constructEvent payload parameter as Record<string, unknown> (#1307)
Type constructEvent payload parameter as Record<string, unknown>.
1 parent 522b0b8 commit 39ab2f2

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/sso/interfaces/authorization-url-options.interface.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,3 @@ export interface SSOAuthorizationURLOptions {
88
redirectUri: string;
99
state?: string;
1010
}
11-
12-
/**
13-
* @deprecated Use SSOAuthorizationURLOptions instead
14-
*/
15-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
16-
export interface AuthorizationURLOptions extends SSOAuthorizationURLOptions {}

src/webhooks/webhooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ export class Webhooks {
3030
secret,
3131
tolerance = 180000,
3232
}: {
33-
payload: unknown;
33+
payload: Record<string, unknown>;
3434
sigHeader: string;
3535
secret: string;
3636
tolerance?: number;
3737
}): Promise<Event> {
3838
const options = { payload, sigHeader, secret, tolerance };
3939
await this.verifyHeader(options);
4040

41-
const webhookPayload = payload as EventResponse;
41+
const webhookPayload = payload as unknown as EventResponse;
4242

4343
return deserializeEvent(webhookPayload);
4444
}

0 commit comments

Comments
 (0)