Skip to content

Commit 18244eb

Browse files
committed
ponpe: Add type information to tsgTeamLoader
1 parent ceee1d1 commit 18244eb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ponpe/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {getMemberName, getEmoji} from '../lib/slackUtils';
88
import path from 'path';
99
import {download} from '../lib/download';
1010
import {Loader} from '../lib/utils';
11+
import type {TeamInfoResponse} from '@slack/web-api';
1112

1213
function getTimeLink(time:number){
1314
return moment(time).utcOffset('+0900').format('HH:mm:ss');
@@ -66,8 +67,8 @@ export default async ({eventClient, webClient: slack}: SlackInterface) => {
6667
.map((x:{short_names:string[]})=>{return x.short_names;}).flat();
6768
});
6869

69-
const tsgTeamLoader = new Loader<any>(async () => {
70-
const {team}: any = await slack.team.info();
70+
const tsgTeamLoader = new Loader<TeamInfoResponse['team']>(async () => {
71+
const {team} = await slack.team.info();
7172
return team;
7273
});
7374

0 commit comments

Comments
 (0)