Class: ComputedRegistry

ComputedRegistry(computedopt)

Registry for computed property definitions.

Constructor

new ComputedRegistry(computedopt)

Parameters:
Name Type Attributes Default Description
computed Object <optional>
{}

An object containing computed property definitions (expressions).

Source:

Classes

ComputedRegistry

Members

computed :Object

Type:
  • Object
Source:

Methods

all() → {Object}

Returns all registered computed property definitions.

Source:
Returns:
Type
Object

get(key) → {string|undefined}

Returns the expression for a given computed property key.

Parameters:
Name Type Description
key string

The key to retrieve.

Source:
Returns:
Type
string | undefined

has(key) → {boolean}

Checks if a computed property with the given key exists.

Parameters:
Name Type Description
key string

The key to check.

Source:
Returns:
Type
boolean

keys() → {Array.<string>}

Returns the keys of all registered computed properties.

Source:
Returns:
Type
Array.<string>