New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find name 'I'. - when passing opts: --ts_proto_opt="outputServices=generic-definitions,outputServices=default" #939
Comments
I don't really recognize the output here; it looks like:
But we don't output We also don't output Can you include more than just a single line of context? You've also linked to compile errors in My guess is that the code in the ts-proto-generated |
I'm just running tsc. Here is what my tsconfig.json looks like...
|
@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. |
No, no ideas. From the title, you're passing
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. |
Hi @stephenh I have the same problem. create<I extends Exact<DeepPartial<VerdictResponse>, I>>(base?: I): VerdictResponse {
return VerdictResponse.fromPartial(base ?? ({} as any));
} but when I run create<I_2 extends {
data?: {
message?: string | undefined;
code?: string | undefined;
} | undefined;
error?: {
code?: string | undefined;
message?: string | undefined;
path?: string | undefined;
extra?: {
[x: string]: any;
} | undefined;
} | undefined;
} & {
data?: ({
message?: string | undefined;
code?: string | undefined;
} & {
message?: string | undefined;
code?: string | undefined;
} & { [K in Exclude<keyof I["data"], keyof HttpSuccess>]: never; }) | undefined;
error?: ({
code?: string | undefined;
message?: string | undefined;
path?: string | undefined;
extra?: {
[x: string]: any;
} | undefined;
} & {
code?: string | undefined;
message?: string | undefined;
path?: string | undefined;
extra?: ({
[x: string]: any;
} & {
[x: string]: any;
} & { [K_1 in Exclude<keyof I["error"]["extra"], string | number>]: never; }) | undefined;
} & { [K_2 in Exclude<keyof I["error"], keyof HttpError>]: never; }) | undefined;
} & { [K_3 in Exclude<keyof I, keyof VerdictResponse>]: never; }>(base?: I_2 | undefined): VerdictResponse; errors:
|
Hi @talgendler ; I still don't know why You should be able to disable the exact types, and that will avoid the |
@stephenh Thank you for your reply, I'm using |
The text was updated successfully, but these errors were encountered: