docs: fix code block titles (#5733)
* docs: fix code block titles * remove console * fix build error
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ Fulfillment providers are loaded and installed on the backend startup.
|
||||
|
||||
The first step is to create a JavaScript or TypeScript file under `src/services`. For example, create the file `src/services/my-fulfillment.ts` with the following content:
|
||||
|
||||
```ts title=src/services/my-fulfillment.ts
|
||||
```ts title="src/services/my-fulfillment.ts"
|
||||
import {
|
||||
AbstractFulfillmentService,
|
||||
Cart,
|
||||
|
||||
@@ -60,7 +60,7 @@ The first step to create a payment processor is to create a JavaScript or TypeSc
|
||||
|
||||
For example, create the file `src/services/my-payment-processor.ts` with the following content:
|
||||
|
||||
```ts title=src/services/my-payment-processor.ts
|
||||
```ts title="src/services/my-payment-processor.ts"
|
||||
import {
|
||||
AbstractPaymentProcessor,
|
||||
PaymentProcessorContext,
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ This guide only explains how to override the cart completion strategy. It’s hi
|
||||
|
||||
Create a TypeScript or JavaScript file in `src/strategies` of your Medusa backend project with a class that extends the `AbstractCartCompletionStrategy` class:
|
||||
|
||||
```ts title=src/strategies/cart-completion.ts
|
||||
```ts title="src/strategies/cart-completion.ts"
|
||||
import {
|
||||
AbstractCartCompletionStrategy,
|
||||
CartCompletionResponse,
|
||||
@@ -52,7 +52,7 @@ You can use a constructor to access services and resources registered in the dep
|
||||
|
||||
<!-- eslint-disable prefer-rest-params -->
|
||||
|
||||
```ts title=src/strategies/cart-completion.ts
|
||||
```ts title="src/strategies/cart-completion.ts"
|
||||
// ...
|
||||
import { IdempotencyKeyService } from "@medusajs/medusa"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user