File tree Expand file tree Collapse file tree 10 files changed +21
-22
lines changed
Expand file tree Collapse file tree 10 files changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,11 @@ declare module 'react-router' {
1212 /**
1313 * Declare local additions to the Remix loader context.
1414 */
15- export interface AppLoadContext
16- extends HydrogenContext < HydrogenSession , undefined , I18nLocale > { }
15+ export interface AppLoadContext extends HydrogenContext <
16+ HydrogenSession ,
17+ undefined ,
18+ I18nLocale
19+ > { }
1720
1821 // TODO: remove this once we've migrated to `Route.LoaderArgs` instead for our loaders
1922 interface LoaderFunctionArgs {
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ export async function generateDefaultConfig(
309309
310310 return Boolean (
311311 schema . endsWith ( baseSfapiSchema ) ||
312- ( baseCaapiSchema && schema . endsWith ( baseCaapiSchema ) ) ,
312+ ( baseCaapiSchema && schema . endsWith ( baseCaapiSchema ) ) ,
313313 ) ;
314314 } ;
315315
Original file line number Diff line number Diff line change @@ -47,9 +47,8 @@ export async function startWorkerdServer({
4747 async function handleCustomerAccountSchema ( ) {
4848 // Request coming from /graphiql
4949 const require = createRequire ( import . meta. url ) ;
50- const filePath = require . resolve (
51- '@shopify/hydrogen/customer-account.schema.json' ,
52- ) ;
50+ const filePath =
51+ require . resolve ( '@shopify/hydrogen/customer-account.schema.json' ) ;
5352
5453 return new Response ( createFileReadStream ( filePath ) , {
5554 headers : { 'Content-Type' : 'application/json' } ,
Original file line number Diff line number Diff line change @@ -115,5 +115,5 @@ export function AddToCartButton<AsType extends React.ElementType = 'button'>(
115115// This is only for documentation purposes, and it is not used in the code.
116116export interface AddToCartButtonPropsForDocs <
117117 AsType extends React . ElementType = 'button' ,
118- > extends AddToCartButtonPropsBase ,
119- CustomBaseButtonProps < AsType > { }
118+ >
119+ extends AddToCartButtonPropsBase , CustomBaseButtonProps < AsType > { }
Original file line number Diff line number Diff line change @@ -79,5 +79,5 @@ export function BuyNowButton<AsType extends React.ElementType = 'button'>(
7979// This is only for documentation purposes, and it is not used in the code.
8080export interface BuyNowButtonPropsForDocs <
8181 AsType extends React . ElementType = 'button' ,
82- > extends BuyNowButtonPropsBase ,
83- CustomBaseButtonProps < AsType > { }
82+ >
83+ extends BuyNowButtonPropsBase , CustomBaseButtonProps < AsType > { }
Original file line number Diff line number Diff line change @@ -44,5 +44,4 @@ export function CartCost(props: CartCostProps): JSX.Element | null {
4444
4545// This is only for documentation purposes, and it is not used in the code.
4646export interface CartCostPropsForDocs < AsType extends React . ElementType = 'div' >
47- extends Omit < MoneyPropsBase < AsType > , 'data' > ,
48- CartCostPropsBase { }
47+ extends Omit < MoneyPropsBase < AsType > , 'data' > , CartCostPropsBase { }
Original file line number Diff line number Diff line change @@ -103,5 +103,7 @@ export function ProductPrice<
103103// This is only for documentation purposes, and it is not used in the code.
104104export interface ProductPricePropsForDocs <
105105 AsType extends React . ElementType = 'div' ,
106- > extends Omit < MoneyPropsBase < AsType > , 'data' | 'measurement' > ,
106+ >
107+ extends
108+ Omit < MoneyPropsBase < AsType > , 'data' | 'measurement' > ,
107109 ProductPriceProps { }
Original file line number Diff line number Diff line change @@ -160,8 +160,7 @@ export interface ShopifyProviderProps extends ShopifyProviderBase {
160160}
161161
162162export interface ShopifyContextValue
163- extends ShopifyProviderBase ,
164- ShopifyContextReturn { }
163+ extends ShopifyProviderBase , ShopifyContextReturn { }
165164
166165type ShopifyContextReturn = {
167166 /**
Original file line number Diff line number Diff line change @@ -139,8 +139,7 @@ export type ShopifySalesChannels = keyof typeof ShopifySalesChannel;
139139export type AnalyticsEventNames = keyof typeof AnalyticsEventName ;
140140
141141export interface ShopifyPageViewPayload
142- extends ShopifyAnalyticsBase ,
143- ClientBrowserParameters {
142+ extends ShopifyAnalyticsBase , ClientBrowserParameters {
144143 /** Canonical url. */
145144 canonicalUrl ?: string ;
146145 /** Shopify page type. */
@@ -173,8 +172,7 @@ export type ShopifyPageView = {
173172} ;
174173
175174export interface ShopifyAddToCartPayload
176- extends ShopifyAnalyticsBase ,
177- ClientBrowserParameters {
175+ extends ShopifyAnalyticsBase , ClientBrowserParameters {
178176 /** Shopify cart id in the form of `gid://shopify/Cart/<id>`. */
179177 cartId : string ;
180178}
Original file line number Diff line number Diff line change @@ -86,9 +86,8 @@ export function setupHydrogenMiddleware(
8686 // so we serve it from here.
8787
8888 const require = createRequire ( import . meta. url ) ;
89- const filePath = require . resolve (
90- '@shopify/hydrogen/customer-account.schema.json' ,
91- ) ;
89+ const filePath =
90+ require . resolve ( '@shopify/hydrogen/customer-account.schema.json' ) ;
9291
9392 res . writeHead ( 200 , { 'Content-Type' : 'application/json' } ) ;
9493 createReadStream ( filePath ) . pipe ( res ) ;
You can’t perform that action at this time.
0 commit comments