File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change 11import { POLYMORPHIC_OPTIONS } from './constants' ;
22import {
3- PolymorphicChildrenDecoratorOptionsInterface ,
4- PolymorphicParentDecoratorOptionsInterface ,
3+ PolymorphicDecoratorOptionsInterface ,
54 PolymorphicMetadataOptionsInterface ,
65} from './polymorphic.interface' ;
76
@@ -21,7 +20,7 @@ const polymorphicPropertyDecorator = (
2120
2221export const PolymorphicChildren = (
2322 classType : ( ) => Function [ ] | Function ,
24- options : PolymorphicChildrenDecoratorOptionsInterface = { } ,
23+ options : PolymorphicDecoratorOptionsInterface = { } ,
2524) : PropertyDecorator =>
2625 polymorphicPropertyDecorator ( {
2726 type : 'children' ,
@@ -35,7 +34,7 @@ export const PolymorphicChildren = (
3534
3635export const PolymorphicParent = (
3736 classType : ( ) => Function [ ] | Function ,
38- options : PolymorphicParentDecoratorOptionsInterface = { } ,
37+ options : PolymorphicDecoratorOptionsInterface = { } ,
3938) : PropertyDecorator =>
4039 polymorphicPropertyDecorator ( {
4140 type : 'parent' ,
Original file line number Diff line number Diff line change @@ -24,17 +24,7 @@ export interface PolymorphicMetadataInterface extends PolymorphicInterface {
2424 propertyKey : string ;
2525}
2626
27- export interface PolymorphicChildrenDecoratorOptionsInterface {
28- primaryColumn ?: string ;
29- hasMany ?: boolean ;
30- cascade ?: boolean ;
31- eager ?: boolean ;
32- deleteBeforeUpdate ?: boolean ;
33- entityTypeColumn ?: string ;
34- entityTypeId ?: string ;
35- }
36-
37- export interface PolymorphicParentDecoratorOptionsInterface {
27+ export interface PolymorphicDecoratorOptionsInterface {
3828 deleteBeforeUpdate ?: boolean ;
3929 primaryColumn ?: string ;
4030 hasMany ?: boolean ;
You can’t perform that action at this time.
0 commit comments