Skip to content

Commit

Permalink
chore: fix more things missing type import
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv committed Nov 8, 2024
1 parent 2b5438c commit a393948
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/jellycommands/src/commands/register.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type APIApplicationCommand, Routes } from 'discord-api-types/v10';
import type { CommandIDMap, ResolvedCommands } from './types';
import { JellyCommands } from '../JellyCommands';
import type { JellyCommands } from '../JellyCommands';
import { getAuthData } from '../utils/token';

export const registerCommands = async (
Expand Down
2 changes: 1 addition & 1 deletion packages/jellycommands/src/commands/respond.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from './types/commands/Command';
import { JellyCommands } from '../JellyCommands';
import type { JellyCommands } from '../JellyCommands';
import type { Interaction } from 'discord.js';
import type { CommandIDMap } from './types';

Expand Down
2 changes: 1 addition & 1 deletion packages/jellycommands/src/commands/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AnyCommand } from './types/types';
import type { AnyCommand } from './types/types';

export type GlobalCommands = Set<AnyCommand>;
export type GuildCommands = Map<string, Set<AnyCommand>>;
Expand Down
6 changes: 3 additions & 3 deletions packages/jellycommands/src/commands/types/commands/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
type ApplicationCommandOptionChoiceData,
type BaseApplicationCommandOptionsData,
import type {
ApplicationCommandOptionChoiceData,
BaseApplicationCommandOptionsData,
ApplicationCommandOptionType,
ChannelType,
} from 'discord.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/jellycommands/src/utils/zod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { z } from 'zod';
import type { z } from 'zod';

export function parseSchema<T extends z.ZodType>(
name: string,
Expand Down

0 comments on commit a393948

Please sign in to comment.