@protobufjs/extend
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@protobufjs/extend

npm

Provides minimal drop-in inheritance for classes.

Usage

function ParentClass() {
}
ParentClass.extend = require("@protobufjs/extend");
function ChildClass() {
}
var ChildPrototype = ParentClass.extend(ChildClass); // also inherits .extend itself
function GrandchildClass() {
}
var GrandchildPrototype = ChildClass.extend(GrandchildClass); // and so it goes forever

License: BSD 3-Clause License

Readme

Keywords

none

Package Sidebar

Install

npm i @protobufjs/extend

Weekly Downloads

3

Version

1.0.2

License

BSD-3-Clause

Last publish

Collaborators

  • dcode
  • protobufjs