import { IFluidHandleContext } from "@fluidframework/core-interfaces" ; param path param routeContext returns export function generateHandleContextPath ( path , routeContext ? ) { if ( path === "" ) { return routeContext === undefined ? "" : routeContext . absolutePath ; } else { let normalizedPath = path . startsWith ( "/" ) ? path . slice ( 1 ) : path ; normalizedPath = normalizedPath . endsWith ( "/" ) ? normalizedPath . slice ( 0 , - 1 ) : normalizedPath ; return routeContext === undefined ? `/${ normalizedPath }` : `${ routeContext . absolutePath === "/" ? "" : routeContext . absolutePath }/${ normalizedPath }` ; } }