Skip to content

fix: make themeVariables typesafe #14532

fix: make themeVariables typesafe

fix: make themeVariables typesafe #14532

Triggered via pull request July 9, 2024 07:03
Status Success
Total duration 1m 24s
Artifacts 1

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 1 warning
build-mermaid
Type 'Theme | Theme | Theme | Theme | Theme' is not assignable to type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined'.
build-mermaid
Argument of type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined' is not assignable to parameter of type '{ fontFamily: string; fontSize: string; textColor: string; errorBkgColor: string; errorTextColor: string; lineColor: string; } & FlowChartStyleOptions'.
build-mermaid
Type 'Theme | Theme | Theme | Theme | Theme' is not assignable to type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined'.
build-mermaid
Type 'Theme' is not assignable to type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; }'.
build-mermaid
Argument of type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined' is not assignable to parameter of type '{ fontFamily: string; fontSize: string; textColor: string; errorBkgColor: string; errorTextColor: string; lineColor: string; } & FlowChartStyleOptions'.
build-mermaid
Type '{} | null' is not assignable to type 'undefined'.
build-mermaid
Type 'Theme | Theme | Theme | Theme | Theme' is not assignable to type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined'.
build-mermaid
Type '{} | null' is not assignable to type 'undefined'.
build-mermaid: packages/mermaid/src/config.ts#L37
Type 'Theme | Theme | Theme | Theme | Theme' is not assignable to type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined'.
build-mermaid: packages/mermaid/src/mermaidAPI.ts#L162
Argument of type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined' is not assignable to parameter of type '{ fontFamily: string; fontSize: string; textColor: string; errorBkgColor: string; errorTextColor: string; lineColor: string; } & FlowChartStyleOptions'.
build-mermaid: packages/mermaid/src/mermaidAPI.ts#L488
Type 'Theme | Theme | Theme | Theme | Theme' is not assignable to type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined'.
build-mermaid: packages/mermaid/src/mermaidAPI.ts#L492
Type 'Theme' is not assignable to type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; }'.
build-mermaid: packages/mermaid/src/styles.spec.ts#L77
Argument of type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined' is not assignable to parameter of type '{ fontFamily: string; fontSize: string; textColor: string; errorBkgColor: string; errorTextColor: string; lineColor: string; } & FlowChartStyleOptions'.
build-mermaid: packages/mermaid/src/utils.ts#L126
Type '{} | null' is not assignable to type 'undefined'.
build-mermaid: packages/mermaid/src/config.ts#L37
Type 'Theme | Theme | Theme | Theme | Theme' is not assignable to type '{ fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: number | undefined; primaryColor?: string | undefined; primaryTextColor?: string | undefined; pie1?: string | undefined; ... 28 more ...; THEME_COLOR_LIMIT?: number | undefined; } | undefined'.
build-mermaid: packages/mermaid/src/utils.ts#L126
Type '{} | null' is not assignable to type 'undefined'.
build-mermaid
No files were found with the provided path: packages/mermaid-mindmap/dist. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size
mermaid-build Expired
11.9 MB