Skip to content

Commit 1c636b7

Browse files
committed
chore: removed duplicate interface
1 parent 3565e5d commit 1c636b7

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/decorators.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { POLYMORPHIC_OPTIONS } from './constants';
22
import {
3-
PolymorphicChildrenDecoratorOptionsInterface,
4-
PolymorphicParentDecoratorOptionsInterface,
3+
PolymorphicDecoratorOptionsInterface,
54
PolymorphicMetadataOptionsInterface,
65
} from './polymorphic.interface';
76

@@ -21,7 +20,7 @@ const polymorphicPropertyDecorator = (
2120

2221
export 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

3635
export const PolymorphicParent = (
3736
classType: () => Function[] | Function,
38-
options: PolymorphicParentDecoratorOptionsInterface = {},
37+
options: PolymorphicDecoratorOptionsInterface = {},
3938
): PropertyDecorator =>
4039
polymorphicPropertyDecorator({
4140
type: 'parent',

src/polymorphic.interface.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)