File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ import { reverseSlugify, slugify } from "../src/utils/slugify";
99interface ParseLanguageResponse {
1010 name : string ;
1111 icon : string ;
12- categories : Array < {
12+ categories : {
1313 name : string ;
14- snippets : Array < SnippetType > ;
15- } > ;
14+ snippets : SnippetType [ ] ;
15+ } [ ] ;
1616 subLanguages : ParseLanguageResponse [ ] ;
1717}
1818
1919interface ParseCategoryResponse {
2020 name : string ;
21- snippets : Array < SnippetType > ;
21+ snippets : SnippetType [ ] ;
2222}
2323
2424const propertyRegex = / ^ \s + ( [ a - z A - Z ] + ) : \s * ( .+ ) / ;
@@ -136,8 +136,8 @@ function parseLanguage(
136136 ) ;
137137 }
138138
139- const subLanguages : Array < ParseLanguageResponse > = [ ] ;
140- const categories : Array < ParseCategoryResponse > = [ ] ;
139+ const subLanguages : ParseLanguageResponse [ ] = [ ] ;
140+ const categories : ParseCategoryResponse [ ] = [ ] ;
141141
142142 for ( const category of readdirSync ( path ) ) {
143143 if ( category === "icon.svg" ) continue ;
You can’t perform that action at this time.
0 commit comments