Skip to content

withLibrary

function withLibrary<T>(name, fn): T;

Defined in: packages/core/src/data/registry.ts:157

Run fn with the given library active, restoring the previous one after.

Type Parameter
T
Parameter Type
name string
fn () => T

T