Skip to content

Commit dda2ac1

Browse files
committed
type: fix CSS type issue.
1 parent 83dcd53 commit dda2ac1

25 files changed

+84
-47
lines changed

core/basic.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '@uiw/react-json-view/basic' {
2-
export const basicTheme: import('react').CSSProperties;
2+
import type * as CSS from 'csstype';
3+
export const basicTheme: CSS.Properties<string | number>;
34
}

core/dark.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '@uiw/react-json-view/dark' {
2-
export const darkTheme: import('react').CSSProperties;
2+
import type * as CSS from 'csstype';
3+
export const darkTheme: CSS.Properties<string | number>;
34
}

core/githubDark.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '@uiw/react-json-view/githubDark' {
2-
export const githubDarkTheme: import('react').CSSProperties;
2+
import type * as CSS from 'csstype';
3+
export const githubDarkTheme: CSS.Properties<string | number>;
34
}

core/githubLight.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '@uiw/react-json-view/githubLight' {
2-
export const githubLightTheme: import('react').CSSProperties;
2+
import type * as CSS from 'csstype';
3+
export const githubLightTheme: CSS.Properties<string | number>;
34
}

core/gruvbox.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '@uiw/react-json-view/gruvbox' {
2-
export const gruvboxTheme: import('react').CSSProperties;
2+
import type * as CSS from 'csstype';
3+
export const gruvboxTheme: CSS.Properties<string | number>;
34
}

core/light.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '@uiw/react-json-view/light' {
2-
export const lightTheme: import('react').CSSProperties;
2+
import type * as CSS from 'csstype';
3+
export const lightTheme: CSS.Properties<string | number>;
34
}

core/monokai.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '@uiw/react-json-view/monokai' {
2-
export const monokaiTheme: import('react').CSSProperties;
2+
import type * as CSS from 'csstype';
3+
export const monokaiTheme: CSS.Properties<string | number>;
34
}

core/nord.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module '@uiw/react-json-view/nord' {
2-
export const nordTheme: import('react').CSSProperties;
2+
import type * as CSS from 'csstype';
3+
export const nordTheme: CSS.Properties<string | number>;
34
}

core/src/arrow/TriangleArrow.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from 'react';
2+
import type * as CSS from 'csstype';
23

34
export interface TriangleArrowProps extends React.SVGProps<SVGSVGElement> {}
45
export function TriangleArrow(props: TriangleArrowProps) {
56
const { style, ...reset } = props;
6-
const defaultStyle: React.CSSProperties = {
7+
const defaultStyle: CSS.Properties<string | number> = {
78
cursor: 'pointer',
89
height: '1em',
910
width: '1em',

core/src/arrow/TriangleSolidArrow.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from 'react';
2+
import type * as CSS from 'csstype';
23

34
export interface TriangleSolidArrowProps extends React.SVGProps<SVGSVGElement> {}
45
export function TriangleSolidArrow(props: TriangleSolidArrowProps) {
56
const { style, ...reset } = props;
6-
const defaultStyle: React.CSSProperties = {
7+
const defaultStyle: CSS.Properties<string | number> = {
78
cursor: 'pointer',
89
height: '1em',
910
width: '1em',

0 commit comments

Comments
 (0)