@glimmer/reference
- Version 0.92.3
- Published
- 57.3 kB
- 5 dependencies
- MIT license
Install
npm i @glimmer/reference
yarn add @glimmer/reference
pnpm add @glimmer/reference
Overview
Objects used to track values and their dirtiness in Glimmer
Index
Variables
Functions
Interfaces
Type Aliases
Variables
variable createDebugAliasRef
let createDebugAliasRef: (debugLabel: string, inner: Reference) => Reference;
variable FALSE_REFERENCE
const FALSE_REFERENCE: Reference<false>;
variable NULL_REFERENCE
const NULL_REFERENCE: Reference<any>;
variable REFERENCE
const REFERENCE: ReferenceSymbol;
variable TRUE_REFERENCE
const TRUE_REFERENCE: Reference<true>;
variable UNDEFINED_REFERENCE
const UNDEFINED_REFERENCE: Reference<any>;
Functions
function childRefFor
childRefFor: (_parentRef: Reference, path: string) => Reference;
function childRefFromParts
childRefFromParts: (root: Reference, parts: string[]) => Reference;
function createComputeRef
createComputeRef: <T = unknown>( compute: () => T, update?: Nullable<(value: T) => void>, debugLabel?: false | string) => Reference<T>;
function createConstRef
createConstRef: <T>(value: T, debugLabel: false | string) => Reference<T>;
function createInvokableRef
createInvokableRef: (inner: Reference) => Reference;
function createIteratorItemRef
createIteratorItemRef: (_value: unknown) => Reference<unknown>;
function createIteratorRef
createIteratorRef: ( listRef: Reference, key: string) => Reference<ArrayIterator | IteratorWrapper>;
function createPrimitiveRef
createPrimitiveRef: <T extends string | number | boolean | symbol>( value: T) => Reference<T>;
function createReadOnlyRef
createReadOnlyRef: (ref: Reference) => Reference;
function createUnboundRef
createUnboundRef: <T>(value: T, debugLabel: false | string) => Reference<T>;
function isConstRef
isConstRef: (_ref: Reference) => boolean;
function isInvokableRef
isInvokableRef: (ref: Reference) => boolean;
function isUpdatableRef
isUpdatableRef: (_ref: Reference) => boolean;
function updateRef
updateRef: (_ref: Reference, value: unknown) => void;
function valueForRef
valueForRef: <T>(_ref: Reference<T>) => T;
Interfaces
interface AbstractIterator
interface AbstractIterator<T, U, V extends IterationItem<T, U>> {}
interface IterationItem
interface IterationItem<T, U> {}
interface IteratorDelegate
interface IteratorDelegate {}
interface ReferenceEnvironment
interface ReferenceEnvironment {}
Type Aliases
type OpaqueIterationItem
type OpaqueIterationItem = IterationItem<unknown, unknown>;
type OpaqueIterator
type OpaqueIterator = AbstractIterator<unknown, unknown, OpaqueIterationItem>;
Package Files (1)
Dependencies (5)
Dev Dependencies (6)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@glimmer/reference
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@glimmer/reference)
- HTML<a href="https://www.jsdocs.io/package/@glimmer/reference"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3109 ms. - Missing or incorrect documentation? Open an issue for this package.