diff --git a/.npmrc b/.npmrc index ee1c1bd..df77915 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -@soft-qr:registry=https://git.soft.qr/api/packages/soft-qr/npm/ \ No newline at end of file +@soft-qr:registry=https://git.soft.qr/api/packages/soft-qr/npm/ diff --git a/lib/types.ts b/lib/types.d.ts similarity index 99% rename from lib/types.ts rename to lib/types.d.ts index ab7c187..b7f3fb1 100644 --- a/lib/types.ts +++ b/lib/types.d.ts @@ -44,7 +44,7 @@ export interface Popup { close(result?: any, animation?: boolean): void; create(): HTMLDivElement; show(parent?: HTMLElement, hidden?: boolean): Promise | undefined; -}; +} export interface PopupButton { className?: string; diff --git a/lib/ui.js b/lib/ui.js index 662d019..80ba123 100644 --- a/lib/ui.js +++ b/lib/ui.js @@ -14,8 +14,6 @@ import { validation, convertCssStyle } from './ui/extension'; import { createDateInput, toDateValue, getFormatter, formatDate, setDateValue, getDateValue, DateSelector } from './ui/date'; import * as utility from './utility'; -/** @typedef {import('./global')} */ - /** * @param {FrameRequestCallback | TimerHandler} callback * @returns {number} diff --git a/package.json b/package.json index 8b0778d..7e89a08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soft-qr/ui-lib", - "version": "1.0.9", + "version": "1.0.10", "publishConfig": { "registry": "https://git.soft.qr/api/packages/soft-qr/npm/" }, diff --git a/tsconfig.json b/tsconfig.json index 804e870..3718135 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,8 @@ }, "include": [ "lib/functions.js", + "lib/global.d.ts", + "lib/types.d.ts", "lib/ui.js", "lib/ui", "lib/utility.js", diff --git a/vite.build.js b/vite.build.js index 70abe4a..438ffc7 100644 --- a/vite.build.js +++ b/vite.build.js @@ -84,7 +84,9 @@ for (const { name, path, rolldownOptions } of libraries) { emptyOutDir: false }, plugins: [ - dts() + dts({ + copyDtsFiles: true + }) ] }); }