Skip to content

Typings missing native object methods #807

Open
@SkeLLLa

Description

@SkeLLLa

protobuf.js version: 6.7.3

Generated package typings don't contain any standard object methods, for example hasOwnProperty and so on, however they are exist, because it returns an object.

Typings generated with:

pbjs -t static-module -w commonjs -o ./index.js ./proto/*.proto && pbts -o ./index.d.ts ./index.js
import * as proto from 'my-static-protobuf-schemas';

proto.packageName.hasOwnProperty('MyMessage')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions