You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I just looking for a development guide for TypeScript.
Or maybe just an interface LineClient or LineAction got export is enough for me.
The reason is bottender now got have interfaces of Action, Client, Event and Props etc. It's wonderful.
With these interfaces, I can say const SayHi: Action<Client, Event>, which with argument interfaces context.sendText and props?.next and etc.
But the problem is Action<Client, Event> interface has no context.sendFlex, and seems LineClient has no export by bottender. Therefore I can not tell VSCode Action<LineClient, LineEvent>.
[ts] Types of parameters 'context' and 'context' are incompatible.
[ts] Type 'Context<LineClient, LineEvent>' is missing the following properties from type'LineContext': _customAccessToken, _isReplied, _shouldBatch, _replyMessages, and 61 more.
What do you think?
The text was updated successfully, but these errors were encountered:
exporttypeWithGroupProps<OwnMatchProps={}>={match?: {groups?: Partial<OwnMatchProps>}}exporttypeLineAction<OwnProps={}>=(context: LineContext,props: Props<Client,LineEvent>&OwnProps,)=>Promise<Action<Client,LineEvent>|undefined|void>// it can return props.nextexpectType<LineAction>(async(context,props)=>{console.assert(context.sendFlex.call)returnprops.next})// it can have OwnPropsexpectType<LineAction<{ownProp1: {nestProp1: string}ownProp2: {nestProp2: string}}>>(async(context,props)=>{console.assert(props.ownProp1.nestProp1)console.assert(props.ownProp2.nestProp2)})// it can use with WithGroupPropsexpectType<LineAction<{ownProp1: {nestProp1: string}ownProp2: {nestProp2: string}}&WithGroupProps<{command: string}>>>(async(context,props)=>{console.assert(props.match?.groups?.command)console.assert(props.ownProp1.nestProp1)console.assert(props.ownProp2.nestProp2)})
Hi, I just looking for a development guide for TypeScript.
Or maybe just an interface
LineClient
orLineAction
got export is enough for me.The reason is bottender now got have interfaces of Action, Client, Event and Props etc. It's wonderful.
With these interfaces, I can say
const SayHi: Action<Client, Event>
, which with argument interfacescontext.sendText
andprops?.next
and etc.But the problem is
Action<Client, Event>
interface has nocontext.sendFlex
, and seemsLineClient
has no export by bottender. Therefore I can not tell VSCodeAction<LineClient, LineEvent>
.Currently, my workaround is
The workaround is working fine, but it will get the next problem on
import { text } from 'bottender'
What do you think?
The text was updated successfully, but these errors were encountered: