-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
An enum field usually has a type like: https://github.com/googleapis/nodejs-web-risk/blob/c3c2f0638124d2e876ee36925e5766e1c7dc447b/protos/protos.d.ts#L141
threatType?: (google.cloud.webrisk.v1.ThreatType|keyof typeof google.cloud.webrisk.v1.ThreatType|null);
A repeated enum field does not have the keyof typeof part of the union: https://github.com/googleapis/nodejs-web-risk/blob/c3c2f0638124d2e876ee36925e5766e1c7dc447b/protos/protos.d.ts#L571
threatTypes?: (google.cloud.webrisk.v1.ThreatType[]|null);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.