File tree 3 files changed +43
-0
lines changed
3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * @file Type Tests - Note
3
+ * @module commitlint-config/interfaces/tests/unit-d/Note
4
+ */
5
+
6
+ import type { NoteKeyword } from '#src/types'
7
+ import type TestSubject from '../note'
8
+
9
+ describe ( 'unit-d:interfaces/Note' , ( ) => {
10
+ it ( 'should match [text: string]' , ( ) => {
11
+ expectTypeOf < TestSubject > ( ) . toHaveProperty ( 'text' ) . toBeString ( )
12
+ } )
13
+
14
+ it ( 'should match [title: NoteKeyword]' , ( ) => {
15
+ expectTypeOf < TestSubject > ( )
16
+ . toHaveProperty ( 'title' )
17
+ . toEqualTypeOf < NoteKeyword > ( )
18
+ } )
19
+ } )
Original file line number Diff line number Diff line change 6
6
export type { default as Config } from './config'
7
7
export type { default as PromptConfig } from './config-prompt'
8
8
export type { default as RulesConfig } from './config-rules'
9
+ export type { default as Note } from './note'
9
10
export type { default as ParserOptions } from './options-parser'
10
11
export type { default as Reference } from './reference'
11
12
export type { default as Revert } from './revert'
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @file Interfaces - Note
3
+ * @module commitlint-config/interfaces/Note
4
+ */
5
+
6
+ import type { NoteKeyword } from '#src/types'
7
+
8
+ /**
9
+ * Object representing a "BREAKING CHANGE" note.
10
+ */
11
+ interface Note {
12
+ /**
13
+ * Note content.
14
+ */
15
+ text : string
16
+
17
+ /**
18
+ * Note title.
19
+ */
20
+ title : NoteKeyword
21
+ }
22
+
23
+ export type { Note as default }
You can’t perform that action at this time.
0 commit comments