UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

34 lines (27 loc) 1.09 kB
/// <reference path="../../../globals.d.ts" /> /// <reference path="./serializer.d.ts" /> declare module goog.proto2 { class ObjectSerializer extends ObjectSerializer__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class ObjectSerializer__Class extends goog.proto2.Serializer__Class { /** * ObjectSerializer, a serializer which turns Messages into simplified * ECMAScript objects. * * @param {goog.proto2.ObjectSerializer.KeyOption=} opt_keyOption If specified, * which key option to use when serializing/deserializing. * @constructor * @extends {goog.proto2.Serializer} */ constructor(opt_keyOption?: goog.proto2.ObjectSerializer.KeyOption); } } declare module goog.proto2.ObjectSerializer { /** * An enumeration of the options for how to emit the keys in * the generated simplified object. * * @enum {number} */ enum KeyOption { TAG, NAME } }