Skip to content

Commit 9493ab8

Browse files
Update typings to include Discord provider config. (#92)
1 parent 4c2314e commit 9493ab8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { FastifyPlugin, FastifyRequest } from 'fastify';
22

33
interface FastifyOAuth2 {
44
APPLE_CONFIGURATION: ProviderConfiguration;
5+
DISCORD_CONFIGURATION: ProviderConfiguration;
56
FACEBOOK_CONFIGURATION: ProviderConfiguration;
67
GITHUB_CONFIGURATION: ProviderConfiguration;
78
LINKEDIN_CONFIGURATION: ProviderConfiguration;

index.test-d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ expectType<Credentials>(credentials);
4949
expectError(fastifyOauth2()); // error because missing required arguments
5050
expectError(fastifyOauth2(server, {}, () => {})); // error because missing required options
5151

52+
expectAssignable<ProviderConfiguration>(fastifyOauth2.DISCORD_CONFIGURATION);
5253
expectAssignable<ProviderConfiguration>(fastifyOauth2.FACEBOOK_CONFIGURATION);
5354
expectAssignable<ProviderConfiguration>(fastifyOauth2.GITHUB_CONFIGURATION);
5455
expectAssignable<ProviderConfiguration>(fastifyOauth2.GOOGLE_CONFIGURATION);

0 commit comments

Comments
 (0)