Update TSCondif
Based on #2558. Also fixes errors resulting from the stricter options.
This commit is contained in:
parent
a75e9faa83
commit
e996a66596
5 changed files with 26 additions and 6 deletions
|
@ -23,6 +23,11 @@ interface ThemeMeta {
|
||||||
themeUrl?: string
|
themeUrl?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ThemeFamilyMeta = Pick<
|
||||||
|
ThemeMeta,
|
||||||
|
"name" | "author" | "licenseType" | "licenseUrl"
|
||||||
|
>
|
||||||
|
|
||||||
export interface ThemeConfigInputColors {
|
export interface ThemeConfigInputColors {
|
||||||
neutral: Scale<Color>
|
neutral: Scale<Color>
|
||||||
red: Scale<Color>
|
red: Scale<Color>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ThemeLicenseType, ThemeConfig, ThemeSyntax } from "../../common"
|
import { ThemeLicenseType, ThemeSyntax, ThemeFamilyMeta } from "../../common"
|
||||||
|
|
||||||
export interface Variant {
|
export interface Variant {
|
||||||
colors: {
|
colors: {
|
||||||
|
@ -21,7 +21,7 @@ export interface Variant {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const meta: Partial<ThemeConfig> = {
|
export const meta: ThemeFamilyMeta = {
|
||||||
name: "Atelier",
|
name: "Atelier",
|
||||||
author: "Bram de Haan (http://atelierbramdehaan.nl)",
|
author: "Bram de Haan (http://atelierbramdehaan.nl)",
|
||||||
licenseType: ThemeLicenseType.MIT,
|
licenseType: ThemeLicenseType.MIT,
|
||||||
|
|
|
@ -3,8 +3,8 @@ import {
|
||||||
chroma,
|
chroma,
|
||||||
colorRamp,
|
colorRamp,
|
||||||
ThemeLicenseType,
|
ThemeLicenseType,
|
||||||
ThemeConfig,
|
|
||||||
ThemeSyntax,
|
ThemeSyntax,
|
||||||
|
ThemeFamilyMeta,
|
||||||
} from "../../common"
|
} from "../../common"
|
||||||
|
|
||||||
export const ayu = {
|
export const ayu = {
|
||||||
|
@ -77,7 +77,7 @@ export const buildSyntax = (t: typeof dark): ThemeSyntax => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const meta: Partial<ThemeConfig> = {
|
export const meta: ThemeFamilyMeta = {
|
||||||
name: "Ayu",
|
name: "Ayu",
|
||||||
author: "dempfi",
|
author: "dempfi",
|
||||||
licenseType: ThemeLicenseType.MIT,
|
licenseType: ThemeLicenseType.MIT,
|
||||||
|
|
|
@ -5,9 +5,10 @@ import {
|
||||||
ThemeLicenseType,
|
ThemeLicenseType,
|
||||||
ThemeConfig,
|
ThemeConfig,
|
||||||
ThemeSyntax,
|
ThemeSyntax,
|
||||||
|
ThemeFamilyMeta,
|
||||||
} from "../../common"
|
} from "../../common"
|
||||||
|
|
||||||
const meta: Partial<ThemeConfig> = {
|
const meta: ThemeFamilyMeta = {
|
||||||
name: "Gruvbox",
|
name: "Gruvbox",
|
||||||
author: "morhetz <morhetz@gmail.com>",
|
author: "morhetz <morhetz@gmail.com>",
|
||||||
licenseType: ThemeLicenseType.MIT,
|
licenseType: ThemeLicenseType.MIT,
|
||||||
|
|
|
@ -6,7 +6,21 @@
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"preserveConstEnums": 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"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue