mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 11:40:43 +00: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;
|
|
}
|