@arkts/language-plugin
Version:
ArkTS Volar Language Plugin.
14 lines (12 loc) • 427 B
text/typescript
import type { ETSMacroPlugin, ETSVirtualCode } from './ets-code'
export function ESObjectPlugin(): ETSMacroPlugin {
return {
name: 'ets:es-object',
resolveVirtualCode(virtualCode: ETSVirtualCode) {
virtualCode.codes.push(
`\n/**\n * 应该尽量不使用此类型。\n * ---\n * Should not use this type as much as possible. \n */ \n type ESObject = any`,
)
return virtualCode
},
}
}