@@ -3,15 +3,30 @@ import { assert } from '@ember/debug';
33
44const config = loadConfigFromMeta ( '<%= name %>' ) as unknown ;
55
6- assert ( "config is not an object" , typeof config === "object" && config !== null ) ;
7- assert ( "modulePrefix was not detected on your config" , "modulePrefix" in config && typeof config . modulePrefix === 'string' )
8- assert ( "locationType was not detected on your config" , "locationType" in config && typeof config . locationType === 'string' )
9- assert ( "rootURL was not detected on your config" , "rootURL" in config && typeof config . rootURL === 'string' )
10- assert ( "APP was not detected on your config" , "APP" in config && typeof config . APP === 'object' )
6+ assert (
7+ 'config is not an object' ,
8+ typeof config === 'object' && config !== null
9+ ) ;
10+ assert (
11+ 'modulePrefix was not detected on your config' ,
12+ 'modulePrefix' in config && typeof config . modulePrefix === 'string'
13+ ) ;
14+ assert (
15+ 'locationType was not detected on your config' ,
16+ 'locationType' in config && typeof config . locationType === 'string'
17+ ) ;
18+ assert (
19+ 'rootURL was not detected on your config' ,
20+ 'rootURL' in config && typeof config . rootURL === 'string'
21+ ) ;
22+ assert (
23+ 'APP was not detected on your config' ,
24+ 'APP' in config && typeof config . APP === 'object'
25+ ) ;
1126
1227export default config as {
13- modulePrefix : string ,
14- locationType : string ,
15- rootURL : string ,
16- APP : Record < string , unknown >
28+ modulePrefix : string ;
29+ locationType : string ;
30+ rootURL : string ;
31+ APP : Record < string , unknown > ;
1732} & Record < string , unknown > ;
0 commit comments