Skip to content

Commit

Permalink
chore(skeleton): define base project types
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 28, 2023
1 parent 2686917 commit d4f6a98
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions types/config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { BaseService } from '~/types/services'

export interface ServicesGroup {
title: string
items: BaseService[]
}

export interface Config {
title?: string
services: ServicesGroup[]
}
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './config'
export * from './services'
10 changes: 10 additions & 0 deletions types/services.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export interface BaseService {
id: string
type?: string
title: string
description?: string
link: string
icon?: string
options?: Record<string, string | number | boolean>
secrets?: Record<string, string | number | boolean>
}

0 comments on commit d4f6a98

Please sign in to comment.