Skip to content

useDefaultScope

Use symbol flags to determine the scope in which a symbol with those flags should be declared given the current context.

import { useDefaultScope } from "@alloy-js/core";
function useDefaultScope(flags?: OutputSymbolFlags): OutputScope | undefined;

Parameters

flagsoptional

OutputSymbolFlags

Returns

Scope context interface | undefined an Scope context interface that is the default scope for the given flags.