Skip to main content
Latest
method NamespaceBase.prototype.getEnum
import { NamespaceBase } from "https://deno.land/x/steam_trader@v0.4.0/types/protobuf.d.ts";

Gets the values of the nested enum of the specified name. This methods differs from Namespace#get | get in that it returns an enum's values directly and throws instead of returning null.

Parameters

name: string

Nested enum name

Returns

{ [k: string]: number; }

Enum values