Closed LinLin00000000 closed 3 months ago
Duplicate of:https://github.com/larksuite/node-sdk/issues/64
可以使用范型来定义缺失的类型:
new WSClient({...baseConfig}).start({
eventDispatcher: new Lark.EventDispatcher({}).register<{test?: 'xxxxx'}>({
'test': 'xxxxx',
'im.message.receive_v1': async (data) => {}
})
});
文档:https://open.feishu.cn/document/server-docs/approval-v4/event/common-event/approval-task-event
会有警告
但是直接运行使用却没有问题