File tree Expand file tree Collapse file tree 6 files changed +23
-5
lines changed Expand file tree Collapse file tree 6 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 157157 " has-package-exports" ,
158158 " hellosign-embedded" ,
159159 " hellosign-sdk" ,
160- " html-escaper" ,
161160 " html-minifier-terser" ,
162161 " html-to-text" ,
163162 " i18next-fs-backend" ,
Original file line number Diff line number Diff line change 11import { escape , unescape } from "html-escaper" ;
2+ import htmlEscaper = require( "html-escaper" ) ;
23
34// $ExpectType string
4- const escaped = escape ( "<bella>" ) ;
5+ escape ( "<bella>" ) ;
56
67// $ExpectType string
7- const unescaped = unescape ( escaped ) ;
8+ unescape ( escape ( "<bella>" ) ) ;
9+
10+ // $ExpectType string
11+ htmlEscaper . escape ( "<bella>" ) ;
12+
13+ // $ExpectType string
14+ htmlEscaper . unescape ( htmlEscaper . escape ( "<bella>" ) ) ;
Original file line number Diff line number Diff line change 1+ interface htmlEscaperStatic {
2+ escape ( str : string ) : string ;
3+ unescape ( str : string ) : string ;
4+ }
5+
6+ declare const htmlEscaper : htmlEscaperStatic ;
7+ export = htmlEscaper ;
Original file line number Diff line number Diff line change 1- export function escape ( str : string ) : string ;
2- export function unescape ( str : string ) : string ;
1+ export { escape , unescape } from "./index.d.cjs" ;
Original file line number Diff line number Diff line change 22 "private" : true ,
33 "name" : " @types/html-escaper" ,
44 "version" : " 3.0.9999" ,
5+ "type" : " module" ,
6+ "exports" : {
7+ "import" : " ./index.d.ts" ,
8+ "default" : " ./index.d.cts"
9+ },
510 "projects" : [
611 " https://github.com/WebReflection/html-escaper"
712 ],
Original file line number Diff line number Diff line change 1313 "forceConsistentCasingInFileNames" : true
1414 },
1515 "files" : [
16+ " index.d.cts" ,
1617 " index.d.ts" ,
1718 " html-escaper-tests.ts"
1819 ]
You can’t perform that action at this time.
0 commit comments