From 8a12cadacf821853f2deca9f29480acafe533605 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 15 Aug 2025 19:28:52 +0900 Subject: [PATCH] . --- info.ts | 14 +++++++++----- webpack.config.js | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/info.ts b/info.ts index 11207b7..71798c3 100644 --- a/info.ts +++ b/info.ts @@ -5,12 +5,16 @@ export class InstanceActionEvent { static src = 'instance'; static dst = 'controller'; static plugin = 'ClusterChatSync'; + + instanceName: string; + action: string; + content: string; - constructor( - public instanceName: string, - public action: string, - public content: string - ) {} + constructor(instanceName: string, action: string, content: string) { + this.instanceName = instanceName; + this.action = action; + this.content = content; + } static jsonSchema = { type: 'object', diff --git a/webpack.config.js b/webpack.config.js index 13fb006..6abcf45 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -16,7 +16,7 @@ module.exports = (env = {}) => merge(common(env), { name: 'ClusterChatSync', library: {type: 'var', name: 'plugin_ClusterChatSync' }, exposes: { - './': './info.js', + './': './info.ts', './package.json': './package.json', }, shared: {