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

Mirror object referencing original JavaScript object.

Properties

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

Object type. (RemoteObjectType enum)

optional
subtype:
| "array"
| "null"
| "node"
| "regexp"
| "date"
| "map"
| "set"
| "weakmap"
| "weakset"
| "iterator"
| "generator"
| "error"
| "proxy"
| "promise"
| "typedarray"
| "arraybuffer"
| "dataview"
| "i32"
| "i64"
| "f32"
| "f64"
| "v128"
| "externref"

Object subtype hint. Specified for object or wasm type values only. (RemoteObjectSubtype enum)

optional
className: string

Object class (constructor) name. Specified for object type values only.

optional
value: any

Remote object value in case of primitive values or JSON values (if it was requested).

optional
unserializableValue: UnserializableValue

Primitive value which can not be JSON-stringified does not have value, but gets this property.

optional
description: string

String representation of the object.

optional
objectId: RemoteObjectId

Unique object identifier (for non-primitive values).

optional
preview: ObjectPreview

Preview containing abbreviated property values. Specified for object type values only.

optional
customPreview: CustomPreview