resolve
Resolve a refkey in the current scope. Returns a Ref for the resolution result. The value of the ref will be undefined if the identifier hasn’t been resolved yet.
import { resolve } from "@alloy-js/core";
function resolve<TScope extends OutputScope, TSymbol extends OutputSymbol>(refkey: Refkey): Ref<ResolutionResult<TScope, TSymbol>>;
Parameters
refkey |
|
Returns
Ref<ResolutionResult<TScope, TSymbol>>
Remarks
This API may return a ref for undefined, but that does not mean that the symbol is not found. The symbol you’re looking for may not have been declared yet. When the symbol is declared, the ref will be updated with the resolution result.