From abbecff4727be59f53f75a3480c05ad1a1a8ae23 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Sun, 17 Aug 2025 18:28:43 +0800 Subject: [PATCH] refactor: update TypeScript definitions for Artplayer plugin; change export syntax and improve interface structure --- .../plugin/template/types/artplayer-plugin-{{name}}.d.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/plugin/template/types/artplayer-plugin-{{name}}.d.ts b/scripts/plugin/template/types/artplayer-plugin-{{name}}.d.ts index 13fad9f14..7b042f5e9 100644 --- a/scripts/plugin/template/types/artplayer-plugin-{{name}}.d.ts +++ b/scripts/plugin/template/types/artplayer-plugin-{{name}}.d.ts @@ -1,14 +1,13 @@ import type Artplayer from 'artplayer'; -export = {{export}}; -export as namespace {{export}}; - -type Option = { +interface Option { // }; -type Result = { +interface Result { name: '{{export}}'; }; declare const {{export}}: (option: Option) => (art: Artplayer) => Result; + +export default {{export}} \ No newline at end of file