File tree Expand file tree Collapse file tree 5 files changed +9
-45
lines changed Expand file tree Collapse file tree 5 files changed +9
-45
lines changed Original file line number Diff line number Diff line change 154
154
"commitizen" : {
155
155
"path" : " ./node_modules/cz-conventional-changelog"
156
156
}
157
+ },
158
+ "dependencies" : {
159
+ "@types/he" : " ^1.1.1"
157
160
}
158
161
}
Original file line number Diff line number Diff line change 1
1
2
- // const he = require('he')
3
2
import he from 'he'
4
3
import { parseHTML } from './html-parser'
5
4
import { parseText } from './text-parser'
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ export function parseComponent(
98
98
currentBlock . end = start
99
99
let text = content . slice ( currentBlock . start , currentBlock . end )
100
100
if ( options . deindent !== false ) {
101
- //@ts -expect-error
102
101
text = deindent ( text )
103
102
}
104
103
// pad content so that linters and pre-processors can output correct
Original file line number Diff line number Diff line change 1
- declare module 'he' {
2
- function escape ( html : string ) : string
3
- function decode ( html : string ) : string
4
- }
5
-
6
- declare module 'source-map' {
7
- class SourceMapGenerator {
8
- setSourceContent ( filename : string , content : string ) : void
9
- addMapping ( mapping : Object ) : void
10
- toString ( ) : string
11
- }
12
- class SourceMapConsumer {
13
- constructor ( map : Object )
14
- originalPositionFor ( position : {
15
- line : number
16
- column : number
17
- } ) : {
18
- source : string | null
19
- line : number | null
20
- column : number | null
21
- }
22
- }
23
- }
24
-
25
- declare module 'lru-cache' {
26
- var exports : {
27
- ( ) : any
28
- }
29
- }
30
-
31
1
declare module 'de-indent' {
32
2
export default function deindent ( input : string ) : string
33
- }
34
-
35
- declare module 'serialize-javascript' {
36
- var exports : {
37
- ( input : string , options : { isJSON : boolean } ) : string
38
- }
39
- }
40
-
41
- declare module 'lodash.template' {
42
- var exports : {
43
- ( input : string , options : { interpolate : RegExp ; escape : RegExp } ) : Function
44
- }
45
- }
3
+ }
Original file line number Diff line number Diff line change 1104
1104
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
1105
1105
integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==
1106
1106
1107
+ " @types/he@^1.1.1 " :
1108
+ version "1.1.1"
1109
+ resolved "https://registry.yarnpkg.com/@types/he/-/he-1.1.1.tgz#19e14033c4ee8f1a702c74dcc6182664839ac2b7"
1110
+ integrity sha512-jpzrsR1ns0n3kyWt92QfOUQhIuJGQ9+QGa7M62rO6toe98woQjnsnzjdMtsQXCdvjjmqjS2ZBCC7xKw0cdzU+Q==
1111
+
1107
1112
" @types/json-schema@^7.0.3 " :
1108
1113
version "7.0.7"
1109
1114
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
You can’t perform that action at this time.
0 commit comments