chore: add missing types in TSDocs example (#12835)

This commit is contained in:
Shahed Nasser
2025-06-26 14:54:00 +03:00
committed by GitHub
parent 9a62f359f1
commit 2983c7c3a5

View File

@@ -283,10 +283,10 @@ export class AbstractFulfillmentProviderService
* class MyFulfillmentProviderService extends AbstractFulfillmentProviderService {
* // ...
* async createFulfillment(
* data: any,
* items: any,
* order: any,
* fulfillment: any
* data: Record<string, unknown>,
* items: Partial<Omit<FulfillmentItemDTO, "fulfillment">>[],
* order: Partial<FulfillmentOrderDTO> | undefined,
* fulfillment: Partial<Omit<FulfillmentDTO, "provider_id" | "data" | "items">>
* ): Promise<CreateFulfillmentResult> {
* // assuming the client creates a fulfillment
* // in the third-party service