Skip to content

Commit d4f6a98

Browse files
committed
chore(skeleton): define base project types
1 parent 2686917 commit d4f6a98

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

Diff for: types/config.d.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { BaseService } from '~/types/services'
2+
3+
export interface ServicesGroup {
4+
title: string
5+
items: BaseService[]
6+
}
7+
8+
export interface Config {
9+
title?: string
10+
services: ServicesGroup[]
11+
}

Diff for: types/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './config'
2+
export * from './services'

Diff for: types/services.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export interface BaseService {
2+
id: string
3+
type?: string
4+
title: string
5+
description?: string
6+
link: string
7+
icon?: string
8+
options?: Record<string, string | number | boolean>
9+
secrets?: Record<string, string | number | boolean>
10+
}

0 commit comments

Comments
 (0)