Skip to content

Commit 546c7d6

Browse files
committed
add typing test
1 parent 19cd334 commit 546c7d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

types/index.test-d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ server.get('/testOauth/callback', async (request, reply) => {
283283
expectType<Promise<Object>>(server.testOAuthName.userinfo(token.token));
284284
expectType<Promise<Object>>(server.testOAuthName.userinfo(token.token.access_token));
285285
expectType<Object>(await server.testOAuthName.userinfo(token.token.access_token));
286+
expectType<{a: string}>(await server.testOAuthName.userinfo<{a: string}>(token.token.access_token));
286287
expectType<void>(server.testOAuthName.userinfo(token.token.access_token, () => {}));
287288
expectType<void>(server.testOAuthName.userinfo(token.token.access_token, undefined, () => {}));
288289
expectAssignable<UserInfoExtraOptions>({ method: 'GET', params: {}, via: 'header' });

0 commit comments

Comments
 (0)