diff --git a/types/config.d.ts b/types/config.d.ts new file mode 100644 index 0000000..61a7a4c --- /dev/null +++ b/types/config.d.ts @@ -0,0 +1,11 @@ +import type { BaseService } from '~/types/services' + +export interface ServicesGroup { + title: string + items: BaseService[] +} + +export interface Config { + title?: string + services: ServicesGroup[] +} diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 0000000..27044cc --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1,2 @@ +export * from './config' +export * from './services' diff --git a/types/services.d.ts b/types/services.d.ts new file mode 100644 index 0000000..9d885dc --- /dev/null +++ b/types/services.d.ts @@ -0,0 +1,10 @@ +export interface BaseService { + id: string + type?: string + title: string + description?: string + link: string + icon?: string + options?: Record + secrets?: Record +}