We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7233ce9 commit acf41b0Copy full SHA for acf41b0
1 file changed
packages/types/test/block-elements.test-d.ts
@@ -0,0 +1,30 @@
1
+import { expectAssignable, expectError } from 'tsd';
2
+import type { RichTextInput } from '../src/index';
3
+
4
+// RichTextInput — happy paths
5
+expectAssignable<RichTextInput>({
6
+ type: 'rich_text_input',
7
+});
8
9
10
+ min_lines: 3,
11
12
13
14
+ max_lines: 16,
15
16
17
18
19
20
21
22
+// RichTextInput — sad paths
23
+expectError<RichTextInput>({
24
25
+ min_lines: '3',
26
27
28
29
+ max_lines: '16',
30
0 commit comments