File tree 4 files changed +40
-3
lines changed
4 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 16
16
"author" :
" Espen Hovlandsdal <[email protected] >" ,
17
17
"type" : " module" ,
18
18
"main" : " ./src/Lowlight.js" ,
19
+ "types" : " ./src/Lowlight.d.ts" ,
19
20
"module" : " ./src/Lowlight.js" ,
20
21
"exports" : {
21
- "." : " ./src/Lowlight.js" ,
22
- "./common" : " ./src/common.js" ,
23
- "./all" : " ./src/all.js"
22
+ "." : {
23
+ "types" : " ./src/Lowlight.d.ts" ,
24
+ "import" : " ./src/Lowlight.js" ,
25
+ "default" : " ./src/Lowlight.js"
26
+ },
27
+ "./common" : {
28
+ "types" : " ./src/common.d.ts" ,
29
+ "import" : " ./src/common.js" ,
30
+ "default" : " ./src/common.js"
31
+ },
32
+ "./all" : {
33
+ "types" : " ./src/all.d.ts" ,
34
+ "import" : " ./src/all.js" ,
35
+ "default" : " ./src/all.js"
36
+ }
24
37
},
25
38
"files" : [
26
39
" src"
Original file line number Diff line number Diff line change
1
+ interface LowlightMarker {
2
+ line : number ;
3
+ className ?: number ;
4
+ }
5
+ interface LowlightProps {
6
+ className ?: string ;
7
+ language ?: string ;
8
+ value : string ;
9
+ prefix ?: string ;
10
+ subset ?: string [ ] ;
11
+ inline ?: boolean ;
12
+ markers : number [ ] | LowlightMarker [ ] ;
13
+ }
14
+ declare function Lowlight ( props : LowlightProps ) : JSX . Element ;
15
+ declare namespace Lowlight {
16
+ var displayName : string ;
17
+ var registerLanguage : ( language : string , syntax : any ) => void ;
18
+ var hasLanguage : ( lang : string ) => boolean ;
19
+ }
20
+ export default Lowlight ;
Original file line number Diff line number Diff line change
1
+ declare const _default : { } ;
2
+ export default _default ;
Original file line number Diff line number Diff line change
1
+ declare const _default : { } ;
2
+ export default _default ;
You can’t perform that action at this time.
0 commit comments