grpc / grpc/grpc-web

Differences between import_style=commonjs+dts vs import_style=typescript

Open
#1,124 0 comments 0 reactions 0 assignees View on GitHub
typescript
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

By comparing the output of these two import styles, it seems there are some differences. Mainly commonjs+dts seems to require grpc requests to use callback while typescript allows for promises. I would like to use commonjs+dts but I want the output to be consistent with what we would get if we just compiled the typescript file. Can someone explain why there are differences and if these anyway to make these two more similar in regards to types and features.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.