Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1198 from Shopify/dependabot/npm_and_yarn/prettie…
Browse files Browse the repository at this point in the history
…r-3.2.5

Bump prettier from 3.1.0 to 3.2.5
  • Loading branch information
lizkenyon authored Feb 12, 2024
2 parents 711e053 + 18d3373 commit a7b5c07
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"jest": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"jest-runner-eslint": "^2.1.2",
"prettier": "^3.1.0",
"prettier": "^3.2.5",
"regenerator-runtime": "^0.14.1",
"rollup": "^3.19.1",
"rollup-plugin-dts": "^6.1.0",
Expand Down
24 changes: 13 additions & 11 deletions packages/graphql-client/src/api-client-utilities/operation-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,24 @@ type UnpackedInput<InputType> = "input" extends keyof InputType
? InputType["input"]
: InputType;

type UnpackedInputMaybe<InputType> = InputType extends InputMaybe<infer R>
? InputMaybe<UnpackedInput<R>>
: UnpackedInput<InputType>;
type UnpackedInputMaybe<InputType> =
InputType extends InputMaybe<infer R>
? InputMaybe<UnpackedInput<R>>
: UnpackedInput<InputType>;

export type OperationVariables<
Operation extends keyof Operations,
Operations extends AllOperations,
> = Operations[Operation]["variables"] extends Record<string, never>
? Record<string, never>
: {
variables?: {
[k in keyof Operations[Operation]["variables"]]: UnpackedInputMaybe<
Operations[Operation]["variables"][k]
>;
> =
Operations[Operation]["variables"] extends Record<string, never>
? Record<string, never>
: {
variables?: {
[k in keyof Operations[Operation]["variables"]]: UnpackedInputMaybe<
Operations[Operation]["variables"][k]
>;
};
};
};

export type ResponseWithType<T = any> = Omit<Response, "json"> & {
json: () => Promise<T>;
Expand Down
7 changes: 4 additions & 3 deletions packages/shopify-api/lib/billing/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ export type BillingConfigLegacyItem =

export type BillingConfigItem<
Future extends FutureFlagOptions = FutureFlagOptions,
> = FeatureEnabled<Future, 'v10_lineItemBilling'> extends true
? BillingConfigOneTimePlan | BillingConfigSubscriptionLineItemPlan
: BillingConfigLegacyItem;
> =
FeatureEnabled<Future, 'v10_lineItemBilling'> extends true
? BillingConfigOneTimePlan | BillingConfigSubscriptionLineItemPlan
: BillingConfigLegacyItem;

// Type this as an interface to improve TSDoc support for it.
/* eslint-disable @typescript-eslint/consistent-indexed-object-style */
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7967,10 +7967,10 @@ prettier@^2.7.1:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==

prettier@^3.1.0:
version "3.1.0"
resolved "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e"
integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==
prettier@^3.2.5:
version "3.2.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==

pretty-format@^29.0.0, pretty-format@^29.7.0:
version "29.7.0"
Expand Down

0 comments on commit a7b5c07

Please sign in to comment.