File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import type * as CSS from 'csstype' ;
23
34export interface FallbackProps extends React . DetailedHTMLProps < React . HTMLAttributes < HTMLDivElement > , HTMLDivElement > { }
4- const defaultStyle : React . CSSProperties = {
5+ const defaultStyle : CSS . Properties < string | number > = {
56 display : 'flex' ,
67 alignItems : 'center' ,
78 justifyContent : 'center' ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import GitHubCorners from '@uiw/react-github-corners';
55import Github from '@uiw/react-shields/github' ;
66import Npm from '@uiw/react-shields/npm' ;
77import BackToUp from '@uiw/react-back-to-top' ;
8+ import type * as CSS from 'csstype' ;
89import logo from '../../logo.png' ;
910import Example from './Example' ;
1011
@@ -112,7 +113,7 @@ const AppHeader = styled.div`
112113const hyperlink : {
113114 href : string ;
114115 label : string ;
115- style ?: React . CSSProperties ;
116+ style ?: CSS . Properties < string | number > ;
116117} [ ] = [
117118 {
118119 href : 'https://www.npmjs.com/package/@uiw/react-codemirror' ,
You can’t perform that action at this time.
0 commit comments