mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: better typing
This commit is contained in:
1 parent
774d6dc9f5
commit
ab88be7c94
10 files changed
+39
-24
No files matched your search
@@ -1,12 +0,0 @@
|
||||
export interface Account {
|
||||
nickname: string;
|
||||
account_id: number;
|
||||
}
|
||||
|
||||
type AccountList =
|
||||
| {
|
||||
data?: Account[];
|
||||
}
|
||||
| undefined;
|
||||
|
||||
export default AccountList;
|
||||
@@ -1,4 +1,6 @@
|
||||
export interface ClanInfo {
|
||||
import { WargamingResponse } from './wargamingResponse.js';
|
||||
|
||||
export interface ClanDetails extends WargamingResponse {
|
||||
data: {
|
||||
[key: number]: {
|
||||
recruiting_options: {
|
||||
@@ -1,4 +1,6 @@
|
||||
export interface AccountInfo {
|
||||
import { WargamingResponse } from './wargamingResponse.js';
|
||||
|
||||
export interface PlayerPersonalData extends WargamingResponse {
|
||||
data: {
|
||||
[key: number]: {
|
||||
statistics: {
|
||||
@@ -0,0 +1,10 @@
|
||||
import { WargamingResponse } from './wargamingResponse.js';
|
||||
|
||||
export interface Player {
|
||||
nickname: string;
|
||||
account_id: number;
|
||||
}
|
||||
|
||||
export interface Players extends WargamingResponse {
|
||||
data: Player[];
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface WargamingResponse {
|
||||
status: string;
|
||||
}
|
||||
Reference in new issue
Block a user