Skip to content

Commit

Permalink
docs: Minor corrections to developer guides (#2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-kv authored Jul 5, 2024
1 parent 26aa924 commit 1c46a88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/docs/guides/developer-guide/custom-fields/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import CustomFieldProperty from '@site/src/components/CustomFieldProperty';

Custom fields allow you to add your own custom data properties almost every Vendure entity. The entities which may have custom fields defined are listed in the [CustomFields interface documentation](/reference/typescript-api/custom-fields/).
Custom fields allow you to add your own custom data properties to almost every Vendure entity. The entities which may have custom fields defined are listed in the [CustomFields interface documentation](/reference/typescript-api/custom-fields/).

Some use-cases for custom fields include:

Expand Down Expand Up @@ -1202,7 +1202,7 @@ However, this sacrifices type safety. To make our custom fields type-safe we can
```ts
// types.ts

// Note: we are using deep a import here, rather than importing from `@vendure/core` due to
// Note: we are using a deep import here, rather than importing from `@vendure/core` due to
// a possible bug in TypeScript (https://github.com/microsoft/TypeScript/issues/46617) which
// causes issues when multiple plugins extend the same custom fields interface.
import { CustomProductFields } from '@vendure/core/dist/entity/custom-entity-fields';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class MyOrderCodeStrategy implements OrderCodeStrategy {

:::info

All strategies can be make use of existing services by using the `init()` method. This is because all strategies
All strategies can make use of existing services by using the `init()` method. This is because all strategies
extend the underlying [`InjectableStrategy` interface](/reference/typescript-api/common/injectable-strategy). In
this example we are assuming that we already created an `OrderCodeService` which contains all the specific logic for
connecting to our backend service which generates the order codes.
Expand Down

0 comments on commit 1c46a88

Please sign in to comment.