Skip to content

Commit

Permalink
refactor: change generic in Precondition to use namespaced type
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Jan 12, 2022
1 parent 9416b2c commit 1a4717b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/structures/Precondition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { ChatInputCommand, ContextMenuCommand, MessageCommand } from './Com
export type PreconditionResult = Awaitable<Result<unknown, UserError>>;
export type AsyncPreconditionResult = Promise<Result<unknown, UserError>>;

export class Precondition<O extends PreconditionOptions = PreconditionOptions> extends Piece<O> {
export class Precondition<O extends Precondition.Options = Precondition.Options> extends Piece<O> {
public readonly position: number | null;

public constructor(context: Piece.Context, options: Precondition.Options = {}) {
Expand Down

0 comments on commit 1a4717b

Please sign in to comment.