type AsyncURIResolver = (URI, defaultURIResolver) => Promise<string> | string;An async-compatible URI resolver function.
May return a plain string for synchronous resolution, or a Promise<string>
for asynchronous resolution. The engine preserves synchronous behaviour when
a plain string is returned (important for call-sites that expect immediate
resolution).
Parameters#
| Parameter | Type |
|---|---|
URI | string |
defaultURIResolver | (URI) => string |
Returns#
Promise<string> | string