Skip to content

Commit

Permalink
Fixing some ai handiwork
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinc committed Sep 20, 2024
1 parent f578add commit d75b5af
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export enum ApplicationType {
DebitOrder = 6,
}

export type BaseApplicationDefault<PortalMeta = string> = {
export type BaseApplicationDefault<PortalMeta> = {
description: string;
type: 'Residential' | 'Business';
tel: string;
Expand All @@ -301,11 +301,11 @@ export type BaseApplicationDefault<PortalMeta = string> = {
portalmeta: PortalMeta | null;
//apptype: ApplicationType;
};
export type BaseApplication<New extends boolean = false, PortalMeta = string> = New extends true
? BaseApplicationDefault
export type BaseApplication<New extends boolean, PortalMeta> = New extends true
? BaseApplicationDefault<PortalMeta>
: BaseApplicationCreated & BaseApplicationDefault<PortalMeta>;

export type NewApplication<New extends boolean = false, PortalMeta = string> =
export type NewApplication<New extends boolean, PortalMeta> =
BaseApplication<New, PortalMeta>
& {
apptype: New extends true ? ApplicationType.New : Readonly<ApplicationType.New>;
Expand All @@ -320,7 +320,7 @@ export type NewApplication<New extends boolean = false, PortalMeta = string> =
// newbank: undefined;
};

export type AddonApplication<New extends boolean = false, PortalMeta = string> =
export type AddonApplication<New extends boolean, PortalMeta> =
BaseApplication<New, PortalMeta>
& {
apptype: New extends true ? ApplicationType.Addon : Readonly<ApplicationType.Addon>;
Expand All @@ -335,7 +335,7 @@ export type AddonApplication<New extends boolean = false, PortalMeta = string> =
// newbank: undefined;
};

export type UpgradeApplication<New extends boolean = false, PortalMeta = string> =
export type UpgradeApplication<New extends boolean, PortalMeta> =
BaseApplication<New, PortalMeta>
& {
apptype: New extends true ? ApplicationType.Upgrade : Readonly<ApplicationType.Upgrade>;
Expand All @@ -350,7 +350,7 @@ export type UpgradeApplication<New extends boolean = false, PortalMeta = string>
// newbank: undefined;
};

export type DowngradeApplication<New extends boolean = false, PortalMeta = string> =
export type DowngradeApplication<New extends boolean, PortalMeta> =
BaseApplication<New, PortalMeta>
& {
apptype: New extends true ? ApplicationType.Downgrade : Readonly<ApplicationType.Downgrade>;
Expand All @@ -365,7 +365,7 @@ export type DowngradeApplication<New extends boolean = false, PortalMeta = strin
// newbank: undefined;
};

export type CancelApplication<New extends boolean = false, PortalMeta = string> =
export type CancelApplication<New extends boolean, PortalMeta> =
BaseApplication<New, PortalMeta>
& {
apptype: New extends true ? ApplicationType.Cancel : Readonly<ApplicationType.Cancel>;
Expand All @@ -380,7 +380,7 @@ export type CancelApplication<New extends boolean = false, PortalMeta = string>
// newbank: undefined;
};

export type RelocateApplication<New extends boolean = false, PortalMeta = string> =
export type RelocateApplication<New extends boolean, PortalMeta> =
BaseApplication<New, PortalMeta>
& {
apptype: New extends true ? ApplicationType.Relocate : Readonly<ApplicationType.Relocate>;
Expand All @@ -395,7 +395,7 @@ export type RelocateApplication<New extends boolean = false, PortalMeta = string
// newbank: undefined;
};

export type DebitOrderApplication<New extends boolean = false, PortalMeta = string> =
export type DebitOrderApplication<New extends boolean, PortalMeta> =
BaseApplication<New, PortalMeta>
& {
apptype: New extends true ? ApplicationType.DebitOrder : Readonly<ApplicationType.DebitOrder>;
Expand Down

0 comments on commit d75b5af

Please sign in to comment.