Skip to content

Commit

Permalink
feat(type): define constructor type
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Dec 29, 2022
1 parent 8c19f40 commit 39c5ab7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions core/type/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ export * from './math.js';

// FIXME:
export type MaybePromise<T> = T | Promise<T>

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type Constructor<ClassType = Record<string, unknown>> = new (...args: any[]) => ClassType;
2 changes: 1 addition & 1 deletion services/telegram-notifier/src/lib/type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {AlwatrDocumentObject} from '@alwatr/type';

export interface MemberList extends AlwatrDocumentObject {
export type MemberList = AlwatrDocumentObject & {
memberList: Array<number>;
}
2 changes: 0 additions & 2 deletions ui/element/src/type.ts

This file was deleted.

0 comments on commit 39c5ab7

Please sign in to comment.