Skip to content
This repository has been archived by the owner on Aug 28, 2020. It is now read-only.

typings: Make Task#run's data field be optional #714

Merged
merged 1 commit into from Jun 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -517,7 +517,7 @@ declare module 'klasa' {

export abstract class Task extends Piece {
public constructor(client: KlasaClient, store: TaskStore, file: string[], directory: string, options?: TaskOptions);
public abstract run(data: any): Promise<void>;
public abstract run(data?: any): Promise<void>;
public toJSON(): PieceTaskJSON;
}

Expand Down