File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ type ConfigOptions = {
2
+ quoteMarkdown ?: boolean ,
3
+ copyMarkdown ?: boolean ,
4
+ scopeSelector ?: string
5
+ }
6
+
7
+ interface Subscription {
8
+ unsubscribe : ( ) => void
9
+ }
10
+
11
+ export function install ( container : Element , options ?: ConfigOptions ) : void ;
12
+ export function uninstall ( container : Element ) : void ;
13
+ export function subscribe ( container : Element , options ?: ConfigOptions ) : Subscription ;
14
+ export function findContainer ( el : Element ) : Element | undefined ;
15
+ export function findTextarea ( container : Element ) : HTMLTextAreaElement | undefined ;
16
+ export function quote ( text : string , range : Range ) : boolean ;
Original file line number Diff line number Diff line change 4
4
"version" : " 0.8.2" ,
5
5
"main" : " dist/quote-selection.umd.js" ,
6
6
"module" : " dist/quote-selection.esm.js" ,
7
+ "types" : " index.d.ts" ,
7
8
"license" : " MIT" ,
8
9
"repository" : " github/quote-selection" ,
9
10
"files" : [
10
- " dist"
11
+ " dist" ,
12
+ " index.d.ts"
11
13
],
12
14
"scripts" : {
13
15
"clean" : " rm -rf dist" ,
You can’t perform that action at this time.
0 commit comments