mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add types folder for TS types
This commit is contained in:
31
src/types/project.ts
Normal file
31
src/types/project.ts
Normal 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
3
src/types/readme.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Types
|
||||
|
||||
TypeScript types for the API system objects.
|
||||
Reference in New Issue
Block a user