File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/common/src/templates Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export type Options = {
1919 isServer ?: boolean ;
2020 main ?: boolean ;
2121 backgroundColor ?: ( ) => string ;
22- mainFile ?: Array < string > ;
22+ mainFile ?: string [ ] ;
2323} ;
2424
2525export type ConfigurationFiles = {
@@ -138,7 +138,7 @@ export default class Template {
138138 /**
139139 * Get possible entry files to evaluate, differs per template
140140 */
141- getEntries ( configurationFiles : ParsedConfigurationFiles ) : Array < string > {
141+ getEntries ( configurationFiles : ParsedConfigurationFiles ) : string [ ] {
142142 return [
143143 configurationFiles . package &&
144144 this . getMainFromPackage ( configurationFiles . package . parsed ) ,
@@ -161,7 +161,7 @@ export default class Template {
161161 */
162162 getDefaultOpenedFiles (
163163 configurationFiles : ParsedConfigurationFiles
164- ) : Array < string > {
164+ ) : string [ ] {
165165 return this . getEntries ( configurationFiles ) ;
166166 }
167167
@@ -177,9 +177,7 @@ export default class Template {
177177 }
178178
179179 // eslint-disable-next-line no-unused-vars
180- getHTMLEntries ( configurationFiles : {
181- [ type : string ] : Object ;
182- } ) : Array < string > {
180+ getHTMLEntries ( configurationFiles : { [ type : string ] : Object } ) : string [ ] {
183181 return [ '/public/index.html' , '/index.html' ] ;
184182 }
185183
You can’t perform that action at this time.
0 commit comments