MockTypedViewDefinition interface

Module @runic-artifex/views/generated/mock in @runic-artifex/views 0.23.0

interface MockTypedViewDefinition

The loose shape of a generated mock definition.

Properties

id

readonly id?: string;

Presents the mock as content with this id, on route content{id}.

state

readonly state: object;

No documentation.

kind

readonly kind?: string;

The page kind of the reference, for a View with several contracts.

setters

readonly setters?: object;

Handlers by client method; the generated definition types them.

commands

readonly commands?: object;

No documentation.

canExecute

readonly canExecute?: object;

No documentation.

resolveKey

readonly resolveKey?: object;

Key resolution of key commands by client method: whether the producer would find an object for the key. Absent, every key resolves.

operations

readonly operations?: object;

No documentation.

regions

readonly regions?: object;

Region handlers by wire name (region-collections/1).

queries

readonly queries?: object;

Query collections by wire name; the generated definition types them as MockTypedQuerySource.