Skip to content

Commit d34158e

Browse files
committed
squash: rename interface
Signed-off-by: Lucas Holmquist <[email protected]>
1 parent 8b1a552 commit d34158e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/event/cloudevent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { v4 as uuidv4 } from "uuid";
22

3-
import { CloudEventV1, validateV1, CloudEventV1Attributes, CloudEventV1OptionsAttributes } from "./v1";
4-
import { CloudEventV03, validateV03, CloudEventV03Attributes, CloudEventV03OptionsAttributes } from "./v03";
3+
import { CloudEventV1, validateV1, CloudEventV1Attributes, CloudEventV1OptionalAttributes } from "./v1";
4+
import { CloudEventV03, validateV03, CloudEventV03Attributes, CloudEventV03OptionalAttributes } from "./v03";
55
import { ValidationError, isBinary, asBase64 } from "./validation";
66
import CONSTANTS from "../constants";
77
import { isString } from "util";
@@ -174,10 +174,10 @@ export class CloudEvent implements CloudEventV1, CloudEventV03 {
174174
options:
175175
| CloudEventV1
176176
| CloudEventV1Attributes
177-
| CloudEventV1OptionsAttributes
177+
| CloudEventV1OptionalAttributes
178178
| CloudEventV03
179179
| CloudEventV03Attributes
180-
| CloudEventV03OptionsAttributes,
180+
| CloudEventV03OptionalAttributes,
181181
): CloudEvent {
182182
return new CloudEvent(Object.assign({}, this.toJSON(), options) as CloudEvent);
183183
}

src/event/v03/cloudevent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface CloudEventV03 extends CloudEventV03Attributes {
2525
specversion: string;
2626
}
2727

28-
export interface CloudEventV03Attributes extends CloudEventV03OptionsAttributes {
28+
export interface CloudEventV03Attributes extends CloudEventV03OptionalAttributes {
2929
/**
3030
* [REQUIRED] Identifies the context in which an event happened. Often this
3131
* will include information such as the type of the event source, the
@@ -59,7 +59,7 @@ export interface CloudEventV03Attributes extends CloudEventV03OptionsAttributes
5959
type: string;
6060
}
6161

62-
export interface CloudEventV03OptionsAttributes {
62+
export interface CloudEventV03OptionalAttributes {
6363
/**
6464
* The following fields are optional.
6565
*/

src/event/v1/cloudevent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface CloudEventV1 extends CloudEventV1Attributes {
2525
specversion: string;
2626
}
2727

28-
export interface CloudEventV1Attributes extends CloudEventV1OptionsAttributes {
28+
export interface CloudEventV1Attributes extends CloudEventV1OptionalAttributes {
2929
/**
3030
* [REQUIRED] Identifies the context in which an event happened. Often this
3131
* will include information such as the type of the event source, the
@@ -60,7 +60,7 @@ export interface CloudEventV1Attributes extends CloudEventV1OptionsAttributes {
6060
type: string;
6161
}
6262

63-
export interface CloudEventV1OptionsAttributes {
63+
export interface CloudEventV1OptionalAttributes {
6464
/**
6565
* The following fields are optional.
6666
*/

0 commit comments

Comments
 (0)