Add types folder for TS types

This commit is contained in:
rijkvanzanten
2020-02-06 16:20:10 -05:00
parent a091a8a0aa
commit 16562b7a57
2 changed files with 34 additions and 0 deletions

31
src/types/project.ts Normal file
View File

@@ -0,0 +1,31 @@
export interface Project {
api: {
version?: string;
database?: string;
requires2FA: boolean;
project_color: string;
project_logo: {
full_url: string;
url: string;
} | null;
project_foreground: {
full_url: string;
url: string;
} | null;
project_background: {
full_url: string;
url: string;
} | null;
project_public_note: string | null;
default_locale: string;
telemetry: boolean;
project_name: string;
};
server?: {
max_upload_size: number;
general: {
php_version: string;
php_api: string;
};
};
}

3
src/types/readme.md Normal file
View File

@@ -0,0 +1,3 @@
# Types
TypeScript types for the API system objects.