refactor(config): improve projectConfig file with types

This commit is contained in:
2022-03-24 14:46:54 +01:00
parent 5a82f96c7d
commit 2d2ef2457d
2 changed files with 18 additions and 27 deletions

8
types/projectConfig.ts Normal file
View File

@@ -0,0 +1,8 @@
type PCKeys = 'shortName' | 'longName' | 'description' | 'url' | 'color'
type PCIconsKeys = 'default' | 'image' | 'apple' | '16_16' | '32_32'
type PCProps = Record<PCKeys, string>
export interface PCDefaultValues extends PCProps {
icons: Record<PCIconsKeys, string>
}