@@ -1119,16 +1119,13 @@ declare function ReactDiffView<T>(props: DiffViewProps_2<T> & {
11191119} ) : JSX . Element ;
11201120export declare const DiffView : typeof ReactDiffView ;
11211121export declare const version : string ;
1122- export type CodeViewProps < T > = {
1122+ export type CodeViewProps = {
11231123 data ?: {
11241124 content : string ;
11251125 fileName ?: string | null ;
11261126 fileLang ?: DiffHighlighterLang | string | null ;
11271127 } ;
11281128 file ?: File$1 ;
1129- extendData ?: Record < string , {
1130- data : T ;
1131- } > ;
11321129 width ?: number ;
11331130 codeViewTheme ?: "light" | "dark" ;
11341131 codeViewTabSpace ?: boolean ;
@@ -1137,32 +1134,28 @@ export type CodeViewProps<T> = {
11371134 codeViewHighlight ?: boolean ;
11381135 codeViewNoBG ?: boolean ;
11391136 codeViewThemeColors ?: DiffViewColorTheme ;
1140- renderExtendLine ?: ( { file, data, lineNumber } : {
1141- file : File$1 ;
1142- lineNumber : number ;
1143- data : T ;
1144- } ) => ReactNode ;
11451137} ;
1146- export type CodeViewProps_1 < T > = Omit < CodeViewProps < T > , "data" > & {
1138+ export type CodeViewProps_1 = Omit < CodeViewProps , "data" > & {
11471139 data ?: {
11481140 content : string ;
11491141 fileName ?: string | null ;
11501142 fileLang ?: DiffHighlighterLang | null ;
11511143 } ;
11521144} ;
1153- export type CodeViewProps_2 < T > = Omit < CodeViewProps < T > , "data" > & {
1145+ export type CodeViewProps_2 = Omit < CodeViewProps , "data" > & {
11541146 data ?: {
11551147 content : string ;
11561148 fileName ?: string | null ;
11571149 fileLang ?: string | null ;
11581150 } ;
11591151} ;
1160- declare function ReactCodeView < T > ( props : CodeViewProps_1 < T > & {
1152+ export declare function buildCodeViewAnsiString ( props : CodeViewProps ) : string ;
1153+ declare function ReactCodeView ( props : CodeViewProps_1 & {
11611154 ref ?: ForwardedRef < {
11621155 getFileInstance : ( ) => File$1 ;
11631156 } > ;
11641157} ) : JSX . Element ;
1165- declare function ReactCodeView < T > ( props : CodeViewProps_2 < T > & {
1158+ declare function ReactCodeView ( props : CodeViewProps_2 & {
11661159 ref ?: ForwardedRef < {
11671160 getFileInstance : ( ) => File$1 ;
11681161 } > ;
0 commit comments