import type { Node } from '@knotx/core'

import { BasePlugin } from '@knotx/core'
import { inject, OnInit } from '@knotx/decorators'

export class {{capitalizedPluginName}} extends BasePlugin<'{{camelCaseName}}'> {
  name = '{{camelCaseName}}' as const

  @inject.nodes()
  nodes!: Node[]

  @OnInit
  init() {
    console.log('{{capitalizedPluginName}} 插件已加载')
  }
}
