Comments (4)
I don't really recognize the output here; it looks like:
export type Exact<P, I extends P> = P extends Builtin ? P
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
But we don't output keyof I, "result"
, we output keyof I, KeysOfUnion...
.
We also don't output keyof I_1
with the _1
suffix...
Can you include more than just a single line of context?
You've also linked to compile errors in index.d.ts
files, but ts-proto generates *.ts
files.
My guess is that the code in the ts-proto-generated *.ts
files is fine, but something is happening on the compilation to index.d.ts
, that is likely specific to your build process.
from ts-proto.
I'm just running tsc. Here is what my tsconfig.json looks like...
$ cat tsconfig.json
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"types": ["node", "@types/long"]
},
"exclude": ["node_modules", "dist"],
"include": ["src/**/*"]
}
from ts-proto.
@stephenh Any idea here? Otherwise, I might resort to outputServices=grpc-js which works as intended but then, I would have to change a bunch of code to match the different casing of method names.
from ts-proto.
No, no ideas. From the title, you're passing
opts: --ts_proto_opt="outputServices=generic-definitions,outputServices=default
I think the syntax would be "outputServices=generic-definitions,default" instead of repeating outputServices again, but not sure how that'd led to your compile error.
from ts-proto.
Related Issues (20)
- Array message type generates invalid code on account of name collision. HOT 8
- Use bigint literals instead of BigInt constructor. HOT 5
- Compiling generated code causes a heap overflow with tsc HOT 1
- toJSON methods don't respect useDate=false HOT 7
- protoc-gen-ts: program not found or is not executable HOT 1
- Add support for bigint in maps
- Enhancement: `json_name` defined in a proto file should be able to be extracted. HOT 1
- Configurability of the unrecognized enum type HOT 3
- Compilation error when combining `useOptionals=all` with `forceLong=long` HOT 1
- Support Values as service return values HOT 2
- Generate google.api.http-based clients HOT 5
- Is there an example of how to use the grpc-web implementation? HOT 1
- Type error in field_mask.ts when outputServices=grpc-js and useOptionals=all HOT 3
- Support for FieldOptions.JSType HOT 6
- Add support for generating only NestJS clients HOT 2
- Issue with message struct serialization/deserialization in method return type HOT 1
- useDate=false doesn't match protobuf JSON spec HOT 11
- Enum field decoding skipping 0 value HOT 1
- env=browser treated same as env=both. Causes globalThis.Buffer typescript error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-proto.