Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.Runtime.ObjectPreview
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { ObjectPreview } = Protocol.Runtime;

Object containing abbreviated remote object value.

Properties

type:
| "object"
| "function"
| "undefined"
| "string"
| "number"
| "boolean"
| "symbol"
| "bigint"

Object type. (ObjectPreviewType enum)

optional
subtype:
| "array"
| "null"
| "node"
| "regexp"
| "date"
| "map"
| "set"
| "weakmap"
| "weakset"
| "iterator"
| "generator"
| "error"

Object subtype hint. Specified for object type values only. (ObjectPreviewSubtype enum)

optional
description: string

String representation of the object.

overflow: boolean

True iff some of the properties or entries of the original object did not fit.

properties: PropertyPreview[]

List of the properties.

optional
entries: EntryPreview[]

List of the entries. Specified for map and set subtype values only.