growi-command-processor.ts 414 B

123456789101112131415
  1. import type { AuthorizeResult } from '@slack/oauth';
  2. import type { GrowiCommand } from './growi-command';
  3. export interface GrowiCommandProcessor<
  4. ProcessCommandContext = { [key: string]: string },
  5. > {
  6. shouldHandleCommand(growiCommand?: GrowiCommand): boolean;
  7. processCommand(
  8. growiCommand: GrowiCommand,
  9. authorizeResult: AuthorizeResult,
  10. context?: ProcessCommandContext,
  11. ): Promise<void>;
  12. }