Skip to content

Commit f688e10

Browse files
committed
🐛 fix labeled integration entitiy
1 parent d5e9bab commit f688e10

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/models/integration-entity.model.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ export type IntegrationEntity = {
55
};
66

77
export type LabeledIntegrationEntity<
8-
T extends IntegrationEntityType | unknown = unknown,
8+
T extends IntegrationEntityType = IntegrationEntityType,
99
> = {
1010
id: string;
1111
type: T;
1212
source: string;
1313
label: string;
14-
additionalProperties?: T extends keyof AdditionalProperties
15-
? AdditionalProperties[T]
16-
: unknown;
14+
additionalProperties?: AdditionalProperties[T];
1715
};
1816

1917
type AdditionalProperties = {

0 commit comments

Comments
 (0)