chore: dependecies reorg (#8535)
This commit is contained in:
committed by
GitHub
parent
59599ac237
commit
058378970a
@@ -6,13 +6,14 @@ import {
|
||||
IDmlEntity,
|
||||
IDmlEntityConfig,
|
||||
InferDmlEntityNameFromConfig,
|
||||
IsDmlEntity,
|
||||
QueryCondition,
|
||||
} from "@medusajs/types"
|
||||
import { isObject, isString, toCamelCase } from "../common"
|
||||
import { transformIndexWhere } from "./helpers/entity-builder/build-indexes"
|
||||
import { BelongsTo } from "./relations/belongs-to"
|
||||
|
||||
const IsDmlEntity = Symbol.for("isDmlEntity")
|
||||
|
||||
function extractNameAndTableName<const Config extends IDmlEntityConfig>(
|
||||
nameOrConfig: Config
|
||||
) {
|
||||
@@ -59,7 +60,7 @@ export class DmlEntity<
|
||||
const TConfig extends IDmlEntityConfig
|
||||
> implements IDmlEntity<Schema, TConfig>
|
||||
{
|
||||
[IsDmlEntity]: true = true
|
||||
[IsDmlEntity] = true
|
||||
|
||||
name: InferDmlEntityNameFromConfig<TConfig>
|
||||
schema: Schema
|
||||
|
||||
Reference in New Issue
Block a user