mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 22:30:23 +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',
|
GUILD = 'guild',
|
||||||
USER = 'user',
|
USER = 'user',
|
||||||
FALLBACK = 'default'
|
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