File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,11 +158,13 @@ export class Scope extends EventEmitter {
158158 } ;
159159 }
160160
161- #getFilesOption( ) : FilesOption | FileAndURLPathConfig | undefined {
161+ #getFilesOption( ) : FileAndURLPathConfig | undefined {
162162 const config = this . options . getAll ( ) ;
163- if ( config && typeof config === 'object' && config !== null && ! Array . isArray ( config ) && 'files' in config ) {
164- // TODO maybe some validation here?
165- return config . files as FilesOption | FileAndURLPathConfig ;
163+ if ( config && typeof config === 'object' && config !== null && ! Array . isArray ( config ) && 'files' in config /*&& validate config.files*/ ) {
164+ return {
165+ files : config . files as FilesOption ,
166+ urlPath : config . urlPath as string | undefined ,
167+ } ;
166168 }
167169 return undefined ;
168170 }
You can’t perform that action at this time.
0 commit comments