Skip to content

Commit 5ef84c1

Browse files
committedJan 12, 2023
type(theme): fix type error. (#444)
1 parent c03ce40 commit 5ef84c1

File tree

23 files changed

+52
-31
lines changed

23 files changed

+52
-31
lines changed
 

‎themes/abcdef/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { tags as t } from '@lezer/highlight';
77
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
88

9-
export const abcdefInit = (options?: CreateThemeOptions) => {
9+
export const abcdefInit = (options?: Partial<CreateThemeOptions>) => {
1010
const { theme = 'dark', settings = {}, styles = [] } = options || {};
1111
return createTheme({
1212
theme: theme,

‎themes/androidstudio/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { tags as t } from '@lezer/highlight';
55
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
66

7-
export const androidstudioInit = (options?: CreateThemeOptions) => {
7+
export const androidstudioInit = (options?: Partial<CreateThemeOptions>) => {
88
const { theme = 'dark', settings = {}, styles = [] } = options || {};
99
return createTheme({
1010
theme: theme,

‎themes/atomone/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { tags as t } from '@lezer/highlight';
88
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
99

10-
export const atomoneInit = (options?: CreateThemeOptions) => {
10+
export const atomoneInit = (options?: Partial<CreateThemeOptions>) => {
1111
const { theme = 'light', settings = {}, styles = [] } = options || {};
1212
return createTheme({
1313
theme: theme,

‎themes/aura/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const auraInit = (options?: CreateThemeOptions) => {
4+
export const auraInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'dark', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/bbedit/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const bbeditInit = (options?: CreateThemeOptions) => {
4+
export const bbeditInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'light', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/bespin/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { tags as t } from '@lezer/highlight';
99
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
1010

11-
export const bespinInit = (options?: CreateThemeOptions) => {
11+
export const bespinInit = (options?: Partial<CreateThemeOptions>) => {
1212
const { theme = 'dark', settings = {}, styles = [] } = options || {};
1313
return createTheme({
1414
theme: theme,

‎themes/darcula/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { tags as t } from '@lezer/highlight';
88
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
99

10-
export const darculaInit = (options?: CreateThemeOptions) => {
10+
export const darculaInit = (options?: Partial<CreateThemeOptions>) => {
1111
const { theme = 'light', settings = {}, styles = [] } = options || {};
1212
return createTheme({
1313
theme: theme,

‎themes/dracula/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { tags as t } from '@lezer/highlight';
88
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
99

10-
export const draculaInit = (options?: CreateThemeOptions) => {
10+
export const draculaInit = (options?: Partial<CreateThemeOptions>) => {
1111
const { theme = 'light', settings = {}, styles = [] } = options || {};
1212
return createTheme({
1313
theme: theme,

‎themes/duotone/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { tags as t } from '@lezer/highlight';
77
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
88

9-
export const duotoneLightInit = (options?: CreateThemeOptions) => {
9+
export const duotoneLightInit = (options?: Partial<CreateThemeOptions>) => {
1010
const { theme = 'light', settings = {}, styles = [] } = options || {};
1111
return createTheme({
1212
theme: theme,
@@ -37,7 +37,7 @@ export const duotoneLightInit = (options?: CreateThemeOptions) => {
3737

3838
export const duotoneLight = duotoneLightInit();
3939

40-
export const duotoneDarkInit = (options?: CreateThemeOptions) => {
40+
export const duotoneDarkInit = (options?: Partial<CreateThemeOptions>) => {
4141
const { theme = 'light', settings = {}, styles = [] } = options || {};
4242
return createTheme({
4343
theme: theme,

‎themes/eclipse/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const eclipseInit = (options?: CreateThemeOptions) => {
4+
export const eclipseInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'light', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/github/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { tags as t } from '@lezer/highlight';
55
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
66

7-
export const githubLightInit = (options?: CreateThemeOptions) => {
7+
export const githubLightInit = (options?: Partial<CreateThemeOptions>) => {
88
const { theme = 'light', settings = {}, styles = [] } = options || {};
99
return createTheme({
1010
theme: theme,
@@ -40,7 +40,7 @@ export const githubLightInit = (options?: CreateThemeOptions) => {
4040

4141
export const githubLight = githubLightInit();
4242

43-
export const githubDarkInit = (options?: CreateThemeOptions) => {
43+
export const githubDarkInit = (options?: Partial<CreateThemeOptions>) => {
4444
const { theme = 'dark', settings = {}, styles = [] } = options || {};
4545
return createTheme({
4646
theme: theme,

‎themes/gruvbox/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { tags as t } from '@lezer/highlight';
88
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
99

10-
export const gruvboxDarkInit = (options?: CreateThemeOptions) => {
10+
export const gruvboxDarkInit = (options?: Partial<CreateThemeOptions>) => {
1111
const { theme = 'dark', settings = {}, styles = [] } = options || {};
1212
return createTheme({
1313
theme: theme,
@@ -122,7 +122,7 @@ export const gruvboxDarkInit = (options?: CreateThemeOptions) => {
122122

123123
export const gruvboxDark = gruvboxDarkInit();
124124

125-
export const gruvboxLightInit = (options?: CreateThemeOptions) => {
125+
export const gruvboxLightInit = (options?: Partial<CreateThemeOptions>) => {
126126
const { theme = 'dark', settings = {}, styles = [] } = options || {};
127127
return createTheme({
128128
theme: theme,

‎themes/material/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const materialInit = (options?: CreateThemeOptions) => {
4+
export const materialInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'dark', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,
@@ -120,7 +120,7 @@ export const materialDarkInit = materialInit;
120120
export const materialDark = materialInit();
121121
export const material = materialInit();
122122

123-
export const materialLightInit = (options?: CreateThemeOptions) => {
123+
export const materialLightInit = (options?: Partial<CreateThemeOptions>) => {
124124
const { theme = 'light', settings = {}, styles = [] } = options || {};
125125
return createTheme({
126126
theme: theme,

‎themes/noctis-lilac/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const noctisLilacInit = (options?: CreateThemeOptions) => {
4+
export const noctisLilacInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'light', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/nord/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

44
// Colors from https://www.nordtheme.com/docs/colors-and-palettes
5-
export const nordInit = (options?: CreateThemeOptions) => {
5+
export const nordInit = (options?: Partial<CreateThemeOptions>) => {
66
const { theme = 'dark', settings = {}, styles = [] } = options || {};
77
return createTheme({
88
theme: theme,

‎themes/okaidia/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const okaidiaInit = (options?: CreateThemeOptions) => {
4+
export const okaidiaInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'dark', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/solarized/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const solarizedLightInit = (options?: CreateThemeOptions) => {
4+
export const solarizedLightInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'light', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,
@@ -115,7 +115,7 @@ export const solarizedLightInit = (options?: CreateThemeOptions) => {
115115

116116
export const solarizedLight = solarizedLightInit();
117117

118-
export const solarizedDarkInit = (options?: CreateThemeOptions) => {
118+
export const solarizedDarkInit = (options?: Partial<CreateThemeOptions>) => {
119119
const { theme = 'dark', settings = {}, styles = [] } = options || {};
120120
return createTheme({
121121
theme: theme,

‎themes/sublime/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export function sublimeInit(options?: CreateThemeOptions) {
4+
export function sublimeInit(options?: Partial<CreateThemeOptions>) {
55
const { theme = 'dark', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/tokyo-night-day/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const tokyoNightDayInit = (options?: CreateThemeOptions) => {
4+
export const tokyoNightDayInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'light', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/tokyo-night-storm/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const tokyoNightStormInit = (options?: CreateThemeOptions) => {
4+
export const tokyoNightStormInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'dark', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/tokyo-night/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { tags as t } from '@lezer/highlight';
22
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
33

4-
export const tokyoNightInit = (options?: CreateThemeOptions) => {
4+
export const tokyoNightInit = (options?: Partial<CreateThemeOptions>) => {
55
const { theme = 'dark', settings = {}, styles = [] } = options || {};
66
return createTheme({
77
theme: theme,

‎themes/vscode/src/index.ts

+24-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { tags as t } from '@lezer/highlight';
55
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
66

7-
export function vscodeDarkInit(options?: CreateThemeOptions) {
7+
export function vscodeDarkInit(options?: Partial<CreateThemeOptions>) {
88
const { theme = 'dark', settings = {}, styles = [] } = options || {};
99
return createTheme({
1010
theme: theme,
@@ -23,15 +23,36 @@ export function vscodeDarkInit(options?: CreateThemeOptions) {
2323
},
2424
styles: [
2525
{
26-
tag: [t.keyword, t.operatorKeyword, t.modifier, t.color, t.constant(t.name), t.standard(t.name), t.standard(t.tagName), t.special(t.brace), t.atom, t.bool, t.special(t.variableName)],
26+
tag: [
27+
t.keyword,
28+
t.operatorKeyword,
29+
t.modifier,
30+
t.color,
31+
t.constant(t.name),
32+
t.standard(t.name),
33+
t.standard(t.tagName),
34+
t.special(t.brace),
35+
t.atom,
36+
t.bool,
37+
t.special(t.variableName),
38+
],
2739
color: '#569cd6',
2840
},
2941
{
3042
tag: [t.controlKeyword, t.moduleKeyword],
3143
color: '#c586c0',
3244
},
3345
{
34-
tag: [t.name, t.deleted, t.character, t.macroName, t.propertyName, t.variableName, t.labelName, t.definition(t.name)],
46+
tag: [
47+
t.name,
48+
t.deleted,
49+
t.character,
50+
t.macroName,
51+
t.propertyName,
52+
t.variableName,
53+
t.labelName,
54+
t.definition(t.name),
55+
],
3556
color: '#9cdcfe',
3657
},
3758
{ tag: t.heading, fontWeight: 'bold', color: '#9cdcfe' },

‎themes/xcode/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { tags as t } from '@lezer/highlight';
55
import { createTheme, CreateThemeOptions } from '@uiw/codemirror-themes';
66

7-
export function xcodeLightInit(options?: CreateThemeOptions) {
7+
export function xcodeLightInit(options?: Partial<CreateThemeOptions>) {
88
const { theme = 'light', settings = {}, styles = [] } = options || {};
99
return createTheme({
1010
theme: theme,
@@ -35,7 +35,7 @@ export function xcodeLightInit(options?: CreateThemeOptions) {
3535

3636
export const xcodeLight = xcodeLightInit();
3737

38-
export const xcodeDarkInit = (options?: CreateThemeOptions) => {
38+
export const xcodeDarkInit = (options?: Partial<CreateThemeOptions>) => {
3939
const { theme = 'dark', settings = {}, styles = [] } = options || {};
4040
return createTheme({
4141
theme: theme,

0 commit comments

Comments
 (0)
Please sign in to comment.