Adjust nullable in types

This commit is contained in:
Manuel Ruwe
2022-12-04 22:02:10 +01:00
parent 8c588f3bc7
commit 8a813eee13
2 changed files with 17 additions and 7 deletions

View File

@@ -41,9 +41,21 @@ export const AvailableElementTypes = ({
enabledStatusChecker: false, enabledStatusChecker: false,
okStatus: [], okStatus: [],
}, },
integration: { behaviour: {
type: 'deluge', isOpeningNewTab: false,
properties: {}, },
area: {
type: 'wrapper',
},
shape: {
location: {
x: 0,
y: 0,
},
size: {
height: 1,
width: 1,
},
}, },
}, },
}, },

View File

@@ -7,13 +7,11 @@ export interface ServiceType extends TileBaseType {
behaviour: ServiceBehaviourType; behaviour: ServiceBehaviourType;
network: ServiceNetworkType; network: ServiceNetworkType;
appearance: ServiceAppearanceType; appearance: ServiceAppearanceType;
integration?: ServiceIntegrationType; //TODO: make this nullable integration?: ServiceIntegrationType;
} }
interface ServiceBehaviourType { interface ServiceBehaviourType {
onClickUrl: string; onClickUrl?: string;
isMoveable: boolean; //TODO: remove this proeprty
isSticky: boolean; //TODO: remove this property
isOpeningNewTab: boolean; isOpeningNewTab: boolean;
} }