chore: update links to v2 docs in source code and comments (#9732)
This commit is contained in:
@@ -23,7 +23,7 @@ export type Hook<Name extends string, Input> = {
|
||||
*
|
||||
* A handler hook can later be registered to consume the hook and perform custom functionality.
|
||||
*
|
||||
* Learn more in [this documentation](https://docs.medusajs.com/v2/advanced-development/workflows/add-workflow-hook).
|
||||
* Learn more in [this documentation](https://docs.medusajs.com/advanced-development/workflows/add-workflow-hook).
|
||||
*
|
||||
* @param name - The hook's name. This is used when the hook handler is registered to consume the workflow.
|
||||
* @param input - The input to pass to the hook handler.
|
||||
|
||||
@@ -229,7 +229,7 @@ export type ReturnWorkflow<TData, TResult, THooks extends any[]> = {
|
||||
/**
|
||||
* This method executes the workflow as a step. Useful when running a workflow within another.
|
||||
*
|
||||
* Learn more in [this documentation](https://docs.medusajs.com/v2/advanced-development/workflows/execute-another-workflow).
|
||||
* Learn more in [this documentation](https://docs.medusajs.com/advanced-development/workflows/execute-another-workflow).
|
||||
*
|
||||
* @param param0 - The options to execute the workflow.
|
||||
* @returns The workflow's result
|
||||
@@ -266,7 +266,7 @@ export type ReturnWorkflow<TData, TResult, THooks extends any[]> = {
|
||||
/**
|
||||
* The workflow's exposed hooks, used to register a handler to consume the hook.
|
||||
*
|
||||
* Learn more in [this documentation](https://docs.medusajs.com/v2/advanced-development/workflows/add-workflow-hook#how-to-consume-a-hook).
|
||||
* Learn more in [this documentation](https://docs.medusajs.com/advanced-development/workflows/add-workflow-hook#how-to-consume-a-hook).
|
||||
*/
|
||||
hooks: ConvertHooksToFunctions<THooks>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user