RunicSourceViewModel interface

Module @runic-artifex/vite-plugin-runic in @runic-artifex/vite-plugin-runic 0.23.0

interface RunicSourceViewModel

A ViewModel with a generated Bridge.

Properties

id

readonly id: string;

The ViewModel's full CLR type name, the part of a generated client's contract before the colon.

name

readonly name: string;

The public name: Counter for CounterViewModel.

route

readonly route: string;

The route connect<Name>() connects: counter. A View presented as content connects another route.

contract

readonly contract: string;

The generated client's contract, {type}:{fingerprint}.

pageKinds

readonly pageKinds: readonly string[];

The kind of its page references: the route, with a View contract appended for each contract variant.

symbol

readonly symbol: string;

No documentation.

location

readonly location?: RunicSourceLocation;

No documentation.