File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export interface Unfurls {
154154 unfurl_media ?: boolean ;
155155}
156156
157- export interface ChatAppendStreamArguments extends TokenOverridable , ChannelAndTS , Partial < MarkdownText > { }
157+ export interface ChatAppendStreamArguments extends TokenOverridable , ChannelAndTS , MarkdownText { }
158158
159159// https://docs.slack.dev/reference/methods/chat.delete
160160export interface ChatDeleteArguments extends ChannelAndTS , AsUser , TokenOverridable { }
Original file line number Diff line number Diff line change @@ -10,21 +10,21 @@ expectError(web.chat.appendStream()); // lacking argument
1010expectError ( web . chat . appendStream ( { } ) ) ; // empty argument
1111expectError (
1212 web . chat . appendStream ( {
13- channel : 'C1234' , // missing ts
13+ channel : 'C1234' , // missing ts and markdown_text
1414 } ) ,
1515) ;
1616expectError (
1717 web . chat . appendStream ( {
18- ts : '1234.56' , // missing channel
18+ ts : '1234.56' , // missing channel and markdown_text
1919 } ) ,
2020) ;
21- // -- happy path
22- expectAssignable < Parameters < typeof web . chat . appendStream > > ( [
23- {
24- channel : 'C1234' ,
21+ expectError (
22+ web . chat . appendStream ( {
23+ channel : 'C1234' , // missing_markdown_text
2524 ts : '1234.56' ,
26- } ,
27- ] ) ;
25+ } ) ,
26+ ) ;
27+ // -- happy path
2828expectAssignable < Parameters < typeof web . chat . appendStream > > ( [
2929 {
3030 channel : 'C1234' ,
You can’t perform that action at this time.
0 commit comments