ncc-prototype-email-alerts-sub
Version:
Northumberland Council Front End Email Alerts Subscription Prototype
38 lines (32 loc) • 681 B
TypeScript
declare module 'express-session' {
export interface SessionData {
formErrors: FormError[],
error: fieldError,
addresses: Address[],
postCodeNotCovered: boolean,
selectedAddress: Address,
paymentData: PaymentData
}
}
export type FormError = {
errorMessage: string
field: string
value: string
page: string
}
export type Address = {
UPRN: string
AddressLine1: string
AddressLine2: string
AddressLine3: string
Town: string
County: string
Postcode: string
}
interface fieldError { [key: string] : { text: string } }
interface CustomError extends Error {
status?: number;
response?: {
status?: number;
};
}