Skip to content

Commit cb7f3d2

Browse files
committed
Lint code
1 parent 8c4b589 commit cb7f3d2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cdk/bin/cdk.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'source-map-support/register';
22
import { App } from 'aws-cdk-lib';
3+
import type { NotificationProps } from '../lib/notification';
34
import { Notification } from '../lib/notification';
45
import type { RegistrationProps } from '../lib/registration';
56
import { Registration } from '../lib/registration';
@@ -10,12 +11,12 @@ import { SloMonitoring } from '../lib/slo-monitoring';
1011

1112
const app = new App();
1213

13-
export const notificationCodeProps: GuStackProps = {
14+
export const notificationCodeProps: NotificationProps = {
1415
stack: 'mobile-notifications',
1516
stage: 'CODE',
1617
};
1718

18-
export const notificationProdProps: GuStackProps = {
19+
export const notificationProdProps: NotificationProps = {
1920
stack: 'mobile-notifications',
2021
stage: 'PROD',
2122
};

cdk/lib/notification.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { GuStack } from '@guardian/cdk/lib/constructs/core';
44
import type { App } from 'aws-cdk-lib';
55
import { CfnInclude } from 'aws-cdk-lib/cloudformation-include';
66

7+
export interface NotificationProps extends GuStackProps {
8+
stack: string;
9+
stage: string;
10+
}
11+
712
export class Notification extends GuStack {
813
constructor(scope: App, id: string, props: GuStackProps) {
914
super(scope, id, props);

0 commit comments

Comments
 (0)