mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 00:59:21 +00:00
6 lines
180 B
TypeScript
6 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;
|
|
}
|