zahmis %!s(int64=5) %!d(string=hai) anos
pai
achega
a5a0315c4b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/slack/src/utils/slash-command-parser.ts

+ 1 - 1
packages/slack/src/utils/slash-command-parser.ts

@@ -3,7 +3,7 @@ import { SlashCommand } from '@slack/bolt';
 import { GrowiCommand } from '~/interfaces/growi-command';
 import { InvalidGrowiCommandError } from '~/models/errors';
 
-export const parse = (slashCommand) => {
+export const parse = (slashCommand: SlashCommand): GrowiCommand => {
   const splitted = slashCommand.text.split(' ');
   if (splitted.length < 2) {
     throw new InvalidGrowiCommandError('The SlashCommand.text does not specify GrowiCommand type');