chore: small tsdoc changes for remoteLink and remoteQueryConfig (#10837)
This commit is contained in:
@@ -111,6 +111,8 @@ export interface MedusaRequest<
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* An object containing fields and variables to be used with the remoteQuery
|
* An object containing fields and variables to be used with the remoteQuery
|
||||||
|
*
|
||||||
|
* @version 2.1.4
|
||||||
*/
|
*/
|
||||||
queryConfig: {
|
queryConfig: {
|
||||||
fields: string[]
|
fields: string[]
|
||||||
@@ -118,7 +120,7 @@ export interface MedusaRequest<
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated. Instead use "req.queryConfig"
|
* @deprecated Use {@link queryConfig} instead.
|
||||||
*/
|
*/
|
||||||
remoteQueryConfig: MedusaRequest["queryConfig"]
|
remoteQueryConfig: MedusaRequest["queryConfig"]
|
||||||
|
|
||||||
|
|||||||
@@ -36,9 +36,12 @@ import { AwilixContainer, ResolveOptions } from "awilix"
|
|||||||
declare module "@medusajs/types" {
|
declare module "@medusajs/types" {
|
||||||
export interface ModuleImplementations {
|
export interface ModuleImplementations {
|
||||||
/**
|
/**
|
||||||
* @deprecated. Instead use "link"
|
* @deprecated use {@link ContainerRegistrationKeys.LINK} instead.
|
||||||
*/
|
*/
|
||||||
[ContainerRegistrationKeys.REMOTE_LINK]: Link
|
[ContainerRegistrationKeys.REMOTE_LINK]: Link
|
||||||
|
/**
|
||||||
|
* @version 2.1.4
|
||||||
|
*/
|
||||||
[ContainerRegistrationKeys.LINK]: Link
|
[ContainerRegistrationKeys.LINK]: Link
|
||||||
[ContainerRegistrationKeys.CONFIG_MODULE]: ConfigModule
|
[ContainerRegistrationKeys.CONFIG_MODULE]: ConfigModule
|
||||||
[ContainerRegistrationKeys.PG_CONNECTION]: Knex<any>
|
[ContainerRegistrationKeys.PG_CONNECTION]: Knex<any>
|
||||||
|
|||||||
@@ -6,9 +6,12 @@ export const ContainerRegistrationKeys = {
|
|||||||
REMOTE_QUERY: "remoteQuery",
|
REMOTE_QUERY: "remoteQuery",
|
||||||
QUERY: "query",
|
QUERY: "query",
|
||||||
/**
|
/**
|
||||||
* @deprecated. Instead use "ContainerRegistrationKeys.LINK"
|
* @deprecated use {@link ContainerRegistrationKeys.LINK} instead.
|
||||||
*/
|
*/
|
||||||
REMOTE_LINK: "remoteLink",
|
REMOTE_LINK: "remoteLink",
|
||||||
|
/**
|
||||||
|
* @version 2.1.4
|
||||||
|
*/
|
||||||
LINK: "link",
|
LINK: "link",
|
||||||
FEATURE_FLAG_ROUTER: "featureFlagRouter",
|
FEATURE_FLAG_ROUTER: "featureFlagRouter",
|
||||||
} as const
|
} as const
|
||||||
|
|||||||
Reference in New Issue
Block a user