UNPKG

protobufjs

Version:

Protocol Buffers for JavaScript & TypeScript.

20 lines (16 loc) 460 B
"use strict"; /* eslint-disable no-unused-vars */ // Global TypeScript helper typedefs. The unused vars anchor these typedefs so // both TypeScript checkJs and pbts can discover them from this script file. /** * Constructor type. * @template T * @typedef {Function & { new(...params: any[]): T; prototype: T }} Constructor */ var Constructor; /** * Properties type. * @template T * @typedef {{ [P in keyof T]?: T[P] }} Properties */ var Properties;