fix: make themeVariables typesafe #14532
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 |
|