Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Update index.d.ts #352

Open
wants to merge 1 commit into
base: d.js_managers
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { KlasaClient, KlasaClientOptions, Piece, Store, PieceOptions, PieceDefau
import { Server as HttpServer, IncomingMessage, ServerResponse } from 'http';
import { SecureContextOptions, Server as HttpSecureServer } from 'tls';
import { Http2SecureServer } from 'http2';
import { DataStore, Collection, Permissions } from 'discord.js';
import { BaseManager, Collection, Permissions } from 'discord.js';

declare module 'klasa-dashboard-hooks' {

Expand All @@ -14,11 +14,9 @@ declare module 'klasa-dashboard-hooks' {
public server: Server;
public routes: RouteStore;
public middlewares: MiddlewareStore;
public dashboardUsers: DataStore<string, DashboardUser, typeof DashboardUser>;
public dashboardUsers: BaseManager<string, DashboardUser, typeof DashboardUser>;
}

export { DashboardClient as Client };

Comment on lines -20 to -21
Copy link

@favna favna Jun 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove these lines. It's perfectly valid. Your IDE is just wrong there if it tells you it cannot support it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I receive this error in both Visual Studio Code and Webstorm.

image

export class DashboardUser {
public constructor(client: DashboardClient, user: any);
public client: DashboardClient;
Expand Down