Skip to content

Commit 6f3f696

Browse files
author
Benjamin E. Coe
authored
fix(types): add missing Newline types (#35)
1 parent 5020bf5 commit 6f3f696

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

index.d.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,22 @@ export interface Parent extends Node {
6767

6868
export interface Message extends Parent {
6969
type: 'message';
70-
children: (Summary | Body)[];
70+
children: (Summary | Body | Newline | Footer)[];
7171
}
7272

7373
export interface Text extends Literal {
7474
type: 'text';
7575
value: string;
7676
}
7777

78+
export interface Newline extends Literal {
79+
type: 'newline';
80+
value: string;
81+
}
82+
7883
export interface BreakingChange extends Literal {
7984
type: 'breaking-change';
80-
value: '!' | 'BREAKING CHANGE';
85+
value: '!' | 'BREAKING-CHANGE' | 'BREAKING CHANGE';
8186
}
8287

8388
export interface Summary extends Parent {
@@ -102,7 +107,7 @@ export interface Separator extends Literal {
102107

103108
export interface Body extends Parent {
104109
type: 'body';
105-
children: (Text | Footer)[];
110+
children: (Text | Newline)[];
106111
}
107112

108113
export interface Footer extends Parent {
@@ -122,5 +127,5 @@ export interface Value extends Parent {
122127

123128
export interface Continuation extends Parent {
124129
type: 'continuation';
125-
children: Text[];
130+
children: (Newline | Text)[];
126131
}

0 commit comments

Comments
 (0)