Created
October 25, 2022 18:16
-
-
Save salemhilal/849bdceacfcfb69044739e22328e9ca3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/interfaces/metered-component-types.ts b/src/interfaces/metered-component-types.ts | |
index 370a143d..b345240f 100644 | |
--- a/src/interfaces/metered-component-types.ts | |
+++ b/src/interfaces/metered-component-types.ts | |
@@ -1,8 +1,4 @@ | |
-import type { | |
- LabelLimitInput, | |
- MeteredComponentLabelLimit, | |
- PriceInput, | |
-} from 'graphql/types.generated'; | |
+import type { LabelLimitInput, PriceInput } from 'graphql/types.generated'; | |
import type { Maybe } from 'interfaces'; | |
import type { DraftObjectId } from 'utils/next-draft-object-id'; | |
@@ -19,11 +15,11 @@ export interface PrimaryLabel { | |
typename?: 'meter_primary_label'; | |
label: string; | |
} | |
-export interface LabelLimitOutput | |
- extends Pick<MeteredComponentLabelLimit, 'limit'> { | |
+export interface LabelLimitOutput { | |
// NOTE: the GraphQL type for this field is "jsonb". We currently convert "jsonb" into `Record<string, unknown>[]` which is wrong — it should just be 'unknown`. | |
// This is a hacky type to describe what we really mean in the meantime. | |
labels: Record<string, string>; | |
+ limit: number; | |
} | |
export function isLabelLimitOutput(l: unknown): l is LabelLimitOutput { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment