Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/steam_trader/types/protobuf.d.ts>Namespace

https://deno.land/x/steam_trader
Latest
class Namespace
extends NamespaceBase
import { Namespace } from "https://deno.land/x/steam_trader@v0.4.0/types/protobuf.d.ts";

Reflected namespace.

Constructors

new
Namespace(name: string, options?: { [k: string]: any; })

Constructs a new namespace instance.

Static Methods

arrayToJSON(array: ReflectionObject[], toJSONOptions?: IToJSONOptions): ({ [k: string]: any; } | undefined)

Converts an array of reflection objects to JSON.

fromJSON(name: string, json: { [k: string]: any; }): Namespace

Constructs a namespace from JSON.

isReservedId(reserved: ((number[] | string)[] | undefined), id: number): boolean

Tests if the specified id is reserved.

isReservedName(reserved: ((number[] | string)[] | undefined), name: string): boolean

Tests if the specified name is reserved.