diff --git a/styles/src/theme/themeConfig.ts b/styles/src/theme/themeConfig.ts index 0342d0226d..176ae83bb7 100644 --- a/styles/src/theme/themeConfig.ts +++ b/styles/src/theme/themeConfig.ts @@ -23,6 +23,11 @@ interface ThemeMeta { themeUrl?: string } +export type ThemeFamilyMeta = Pick< + ThemeMeta, + "name" | "author" | "licenseType" | "licenseUrl" +> + export interface ThemeConfigInputColors { neutral: Scale red: Scale diff --git a/styles/src/themes/atelier/common.ts b/styles/src/themes/atelier/common.ts index 961ca64270..2e5be61f52 100644 --- a/styles/src/themes/atelier/common.ts +++ b/styles/src/themes/atelier/common.ts @@ -1,4 +1,4 @@ -import { ThemeLicenseType, ThemeConfig, ThemeSyntax } from "../../common" +import { ThemeLicenseType, ThemeSyntax, ThemeFamilyMeta } from "../../common" export interface Variant { colors: { @@ -21,7 +21,7 @@ export interface Variant { } } -export const meta: Partial = { +export const meta: ThemeFamilyMeta = { name: "Atelier", author: "Bram de Haan (http://atelierbramdehaan.nl)", licenseType: ThemeLicenseType.MIT, diff --git a/styles/src/themes/ayu/common.ts b/styles/src/themes/ayu/common.ts index 26e21c1910..1eb2c91916 100644 --- a/styles/src/themes/ayu/common.ts +++ b/styles/src/themes/ayu/common.ts @@ -3,8 +3,8 @@ import { chroma, colorRamp, ThemeLicenseType, - ThemeConfig, ThemeSyntax, + ThemeFamilyMeta, } from "../../common" export const ayu = { @@ -77,7 +77,7 @@ export const buildSyntax = (t: typeof dark): ThemeSyntax => { } } -export const meta: Partial = { +export const meta: ThemeFamilyMeta = { name: "Ayu", author: "dempfi", licenseType: ThemeLicenseType.MIT, diff --git a/styles/src/themes/gruvbox/gruvbox-common.ts b/styles/src/themes/gruvbox/gruvbox-common.ts index f1c04a069c..18e8c5b97e 100644 --- a/styles/src/themes/gruvbox/gruvbox-common.ts +++ b/styles/src/themes/gruvbox/gruvbox-common.ts @@ -5,9 +5,10 @@ import { ThemeLicenseType, ThemeConfig, ThemeSyntax, + ThemeFamilyMeta, } from "../../common" -const meta: Partial = { +const meta: ThemeFamilyMeta = { name: "Gruvbox", author: "morhetz ", licenseType: ThemeLicenseType.MIT, diff --git a/styles/tsconfig.json b/styles/tsconfig.json index 13a5faf32b..6d24728a0a 100644 --- a/styles/tsconfig.json +++ b/styles/tsconfig.json @@ -6,7 +6,21 @@ "noImplicitAny": true, "removeComments": true, "preserveConstEnums": true, - "sourceMap": true + "sourceMap": true, + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "declaration": true, + "strict": true, + "strictNullChecks": true, + "noImplicitThis": true, + "alwaysStrict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": false, + "experimentalDecorators": true, + "strictPropertyInitialization": false, + "skipLibCheck": true }, "exclude": ["node_modules"] }