mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-15 07:04:01 -06:00
7 lines
180 B
TypeScript
7 lines
180 B
TypeScript
export async function importRuntimeModule<T>(
|
|
baseUrl: string,
|
|
parts: readonly string[],
|
|
): Promise<T> {
|
|
return (await import(new URL(parts.join(""), baseUrl).href)) as T;
|
|
}
|