Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Jun 8, 2022
1 parent 7ea6491 commit 157e9e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core-typings/src/SlashCommands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export type SlashCommand<T extends string = string> = {
description: SlashCommandOptions['description'];
permission: SlashCommandOptions['permission'];
clientOnly?: SlashCommandOptions['clientOnly'];
result?: (err: Meteor.Error, result: never, data: { cmd: string; params: string; msg: IMessage }) => void;
result?: (err: unknown, result: never, data: { cmd: string; params: string; msg: IMessage }) => void;
providesPreview: boolean;
previewer?: SlashCommandPreviewer;
previewCallback?: SlashCommandPreviewCallback;
Expand Down
4 changes: 2 additions & 2 deletions packages/rest-typings/src/v1/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { PaginatedResult } from '../helpers/PaginatedResult';
export type CommandsEndpoints = {
'commands.get': {
GET: (params: { command: string }) => {
command: SlashCommand;
command: Pick<SlashCommand, 'clientOnly' | 'command' | 'description' | 'params' | 'providesPreview'>;
};
};
'commands.list': {
Expand All @@ -14,7 +14,7 @@ export type CommandsEndpoints = {
fields?: string;
}>,
) => PaginatedResult<{
commands: SlashCommand[];
commands: Pick<SlashCommand, 'clientOnly' | 'command' | 'description' | 'params' | 'providesPreview'>[];
}>;
};
'commands.run': {
Expand Down

0 comments on commit 157e9e8

Please sign in to comment.