Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

DevtoolsSnapshot

interfaz

Captura del estado de DevTools, independiente de referencias DOM y de valores no serializables.

ts
import type { DevtoolsSnapshot } from "@meekojs/meeko";

Source code src/core/devtools-protocol.ts:278

Declaración #

ts
interface DevtoolsSnapshot {
	protocolVersion: DevtoolsProtocolVersion
	instances: DevtoolsInstance[]
	events: DevtoolsEvent[]
	selectedId: string | null
}

Example #

ts
import type { DevtoolsSnapshot } from "@meekojs/meeko";

const snapshot: DevtoolsSnapshot | undefined = window.__MEEKO_DEVTOOLS__?.snapshot();
const selected = snapshot?.instances.find((instance) => instance.id === snapshot.selectedId);

Propiedades #

protocolVersion #

propiedad

protocolVersion: DevtoolsProtocolVersion

Versión del protocolo que implementa el runtime.

instances #

propiedad

instances: DevtoolsInstance[]

Instancias hidratadas activas; cada una enlaza a su padre y a sus hijas por ID.

events #

propiedad

events: DevtoolsEvent[]

Copia de los eventos recientes de la línea de tiempo, del más antiguo al más nuevo; guarda hasta 100.

selectedId #

propiedad

selectedId: string | null

Instancia seleccionada con select, o null si no hay ninguna.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/core/devtools-protocol.ts