mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
types: added ResponseProps Generic type
This commit is contained in:
parent
8f1634de79
commit
4b062fac93
@ -151,4 +151,16 @@ export enum DiscordImageType {
|
||||
GUILD = 'guild',
|
||||
USER = 'user',
|
||||
FALLBACK = 'default'
|
||||
}
|
||||
}
|
||||
|
||||
export interface ResponseProps<T=Data> {
|
||||
code?: number
|
||||
message?: string
|
||||
version?: number
|
||||
data?: T
|
||||
errors?: string[]
|
||||
}
|
||||
|
||||
interface Data<T=unknown> {
|
||||
[key: string]: T
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user