Skip to content

Commit 99d4ff2

Browse files
author
Vieltojarvi
committed
Merge branch 'main' into seed-feat
2 parents 47836d8 + 9a00a6b commit 99d4ff2

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.changeset/shiny-forks-smell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/plugin-types': patch
3+
---
4+
5+
change AmplifyEventMessage interface to type

packages/cli-core/API.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88

99
import { AmplifyIOHost } from '@aws-amplify/plugin-types';
1010
import { PackageManagerController } from '@aws-amplify/plugin-types';
11-
import { Printer as Printer_2 } from '../index.js';
1211
import { WriteStream } from 'node:tty';
1312
import z from 'zod';
1413

1514
// @public
1615
export class AmplifyIOEventsBridgeSingletonFactory {
17-
constructor(printer?: Printer_2);
16+
constructor(printer?: Printer);
1817
getInstance: () => AmplifyIOHost;
1918
}
2019

packages/cli-core/src/loggers/amplify_io_events_bridge_singleton_factory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { AmplifyIOEventsBridge } from './amplify_io_events_bridge.js';
22
import { AmplifyEventLogger } from './amplify_event_loggers.js';
33
import { AmplifyIOHost } from '@aws-amplify/plugin-types';
44
import { printer as globalPrinter } from '../printer.js';
5+
import { Printer } from '../printer/printer.js';
56
/**
67
* Create a singleton for the AmplifyIOEventsBridge. There should
78
* exist just one instance and used by all consumers.
@@ -14,7 +15,7 @@ export class AmplifyIOEventsBridgeSingletonFactory {
1415
* instance to be used for logging.
1516
* @param printer a printer instance to be used for logging
1617
*/
17-
constructor(private readonly printer = globalPrinter) {}
18+
constructor(private readonly printer: Printer = globalPrinter) {}
1819

1920
/**
2021
* Returns a singleton instance of a AmplifyIOEventsBridge

packages/plugin-types/API.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ import { Stack } from 'aws-cdk-lib';
2828
import { ToolkitAction } from '@aws-cdk/toolkit-lib';
2929

3030
// @public (undocumented)
31-
export interface AmplifyEventMessage {
32-
// (undocumented)
33-
action: ToolkitAction | 'amplify';
34-
// (undocumented)
31+
export type AmplifyEventMessage = {
3532
code: string;
36-
}
33+
action: ToolkitAction | 'amplify';
34+
};
3735

3836
// @public (undocumented)
3937
export type AmplifyFunction = ResourceProvider<FunctionResources>;

packages/plugin-types/src/amplify_io_host.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ import { IoMessage, IoRequest, ToolkitAction } from '@aws-cdk/toolkit-lib';
88
// See https://stackoverflow.com/a/56346446
99
export type SimpleSpread<L, R> = R & Pick<L, Exclude<keyof L, keyof R>>;
1010

11-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
12-
export interface AmplifyEventMessage {
11+
export type AmplifyEventMessage = {
1312
code: string;
1413
action: ToolkitAction | 'amplify';
15-
}
14+
};
1615

1716
export type AmplifyIoHostEventMessage<T> = {} & SimpleSpread<
1817
IoMessage<T>,

0 commit comments

Comments
 (0)