File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import CodeHighlighter , {
22 type CodeHighlighterProps ,
33} from "./lib/CodeHighlighter" ;
4+ import type { ReactStyle } from "./utils/styles" ;
45
5- export type { CodeHighlighterProps } ;
6+ export type { CodeHighlighterProps , ReactStyle } ;
67
78export default CodeHighlighter ;
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import type { CSSProperties } from "react";
33import type { TextStyle } from "react-native" ;
44
55export type HighlighterStyleSheet = { [ key : string ] : TextStyle } ;
6- export type ReactStyle = Record < string , CSSProperties > ;
6+ export type ReactStyle = {
7+ [ key : string ] : React . CSSProperties ;
8+ } ;
79
810const ALLOWED_STYLE_PROPERTIES : Record < string , boolean > = {
911 color : true ,
You can’t perform that action at this time.
0 commit comments