import type { ServerWithRequiredParameters } from "@rnx-kit/config" ; import { getKitConfig , getServerConfig } from "@rnx-kit/config" ; import { pickValues } from "@rnx-kit/tools-language/properties" ; export type ServerConfigOverrides = { projectRoot ? : string ; assetPlugins ? : string [ ] ; sourceExts ? : string [ ] ; } ; param overrides returns export function getKitServerConfig ( overrides ) { const kitConfig = getKitConfig ( ) ; if ( ! kitConfig ) { throw new Error ( "No kit configuration found for this react-native experience" ) ; } return { ... getServerConfig ( kitConfig ) , ... pickValues ( overrides , [ "projectRoot" , "assetPlugins" , "sourceExts" ] ) } ; }