2026-07-29 08:29:29 +00:00
// Module ID: 1517
// Function ID: 1518
// Name: formatToList
// Dependencies: []
// Module 1517 (formatToList)
function formatToList ( arg0 ) {
}
function validatePathConfig ( config ) {
let flag = arg1 ;
if ( arg1 === undefined ) {
flag = true ;
}
const items = [ "initialRouteName" , "screens" ] ;
if ( ! flag ) {
items . push ( "path" , "exact" , "stringify" , "parse" ) ;
}
const keys = Object . keys ( config ) ;
const found = keys . filter ( ( arg0 ) => ! items . includes ( arg0 ) ) ;
if ( found . length ) {
2026-08-04 21:03:28 +00:00
if ( typeof items !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const mapped = found . map ( ( arg0 ) => "- " + arg0 ) ;
const joined = mapped . join ( "\n" ) ;
2026-08-04 21:03:28 +00:00
if ( typeof items !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const mapped1 = items . map ( ( arg0 ) => "- " + arg0 ) ;
const _HermesInternal = HermesInternal ;
const error = new Error ( "Found invalid properties in the configuration:\n" + joined + "\n\nDid you forget to specify them under a 'screens' property?\n\nYou can only specify the following properties:\n" + mapped1 . join ( "\n" ) + "\n\nSee https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration." ) ;
throw error ;
} else if ( config . screens ) {
const _Object = Object ;
const entries = Object . entries ( config . screens ) ;
const item = entries . forEach ( ( arg0 ) => {
let tmp ;
[ , tmp ] = arg0 ;
2026-08-04 21:03:28 +00:00
if ( typeof tmp !== "string" ) {
2026-07-29 08:29:29 +00:00
callback ( tmp , false ) ;
}
} ) ;
}
}
arg5 . default = validatePathConfig ;