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 8a9b331 commit f780c6aCopy full SHA for f780c6a
packages/builders/__tests__/components/textInput.test.ts
@@ -104,7 +104,7 @@ describe('Text Input Components', () => {
104
});
105
106
test('GIVEN valid input THEN valid JSON outputs are given', () => {
107
- const textInputData: APITextInputComponent = {
+ const textInputData = {
108
type: ComponentType.TextInput,
109
label: 'label',
110
custom_id: 'custom id',
@@ -114,7 +114,7 @@ describe('Text Input Components', () => {
114
value: 'value',
115
required: false,
116
style: TextInputStyle.Paragraph,
117
- };
+ } satisfies APITextInputComponent;
118
119
expect(new TextInputBuilder(textInputData).toJSON()).toEqual(textInputData);
120
expect(
0 commit comments