export async function make ( [ type , portName ] ) { const handlers = { port : ( await import ( './port' ) ) . makePort , } ; type Handler = keyof typeof handlers ; const handler = handlers [ type as Handler ] ; if ( ! handler ) { return ; } handler ( portName ) ; }