1、编写以下代码
import { insightIntent } from '@kit.IntentsKit'
class testClass implements insightIntent.IntentActionInfo {
}
2、报错如下:
Class 'testClass' incorrectly implements interface 'IntentActionInfo'. Index signature for type 'string' is missing in type 'testClass'. <ArkTSCheck>
不支持直接implements insightIntent.IntentActionInfo,参考示例如下: