Skip to content

@serenity-is/corelib / getLookup

Function: getLookup()

getLookup<TItem>(key): Lookup<TItem>

Defined in: src/compat/scriptdata-compat.ts:79

Synchronously retrieves a lookup by key. Compat shim for Q.getLookup; delegates to ScriptData.ensure('Lookup.' + key).

Type Parameters

TItem

TItem

Parameters

key

string

Lookup key (e.g., "Administration.User").

Returns

Lookup<TItem>

The Lookup instance for the key.

Deprecated

Prefer getLookupAsync or direct getScriptData usage. Kept for legacy synchronous callers.