rvx
Version:
A signal based rendering library
19 lines (18 loc) • 461 B
TypeScript
import { UninitView } from "../core/view.js";
/**
* Assert that the specified view is in a valid state.
*
* This can be used in development to assert the correctness of custom view implementations.
*
* ```tsx
* import { View } from "rvx";
* import { assertViewState } from "rvx/test";
*
* new View((setBoundary, self) => {
* ...
* assertViewState(self);
* ...
* });
* ```
*/
export declare function assertViewState(view: UninitView): void;