chore(types, utils): update the TSDocs of AbstractFulfillmentProviderService (#9349)

Updates the `AbstractFulfillmentProviderService` with TSDocs for more useful information and examples

Closes DOCS-950
This commit is contained in:
Shahed Nasser
2024-10-02 12:01:01 +03:00
committed by GitHub
parent 86badc6804
commit 7ce9121095
3 changed files with 370 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
import { AbstractFulfillmentProviderService } from "@medusajs/framework/utils"
import { FulfillmentOption } from "@medusajs/types"
// TODO rework type and DTO's
@@ -9,7 +10,7 @@ export class ManualFulfillmentService extends AbstractFulfillmentProviderService
super()
}
async getFulfillmentOptions(): Promise<Record<string, unknown>[]> {
async getFulfillmentOptions(): Promise<FulfillmentOption[]> {
return [
{
id: "manual-fulfillment",