The key type
The value type
The context type
ReadonlyrefThe normalized string key used for internal storage.
This is the result of applying key2string to the givenKey.
ReadonlygivenThe original key as provided by the caller.
This preserves the original key type and value, even if it's been converted to a string for storage.
ReadonlyvalueThe value associated with this key.
Created by the factory function on first access.
ReadonlyctxThe context provided when this item was created.
Can be used to pass configuration or state to value factories.
A structured item containing a key, value, and context.
This is the fundamental container type used throughout the keyed-ng system. Items are created by KeyedNg and passed to factory functions and callbacks.
Example