Skip to content

Commit

Permalink
feat: update type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Jan 13, 2025
1 parent f29104a commit 6d205d8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@types/minimist": "^1.2.5",
"@types/ms": "^0.7.34",
"@types/node-persist": "^3.1.8",
"@verdaccio/types": "^10.8.0",
"@verdaccio/types": "13.0.0-next-8.2",
"core-js": "^3.40.0",
"cross-env": "^7.0.3",
"eslint": "^9.17.0",
Expand Down
11 changes: 6 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 14 additions & 8 deletions src/client/plugin/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
declare interface MouseEvent {
// IE and Edge have a `path` property instead of `composedPath()`.
// https://caniuse.com/#feat=mdn-api_event_composedpath
path?: Element[];
}
import type { TemplateUIOptions } from "@verdaccio/types";

export {};

declare global {
interface MouseEvent {
// IE and Edge have a `path` property instead of `composedPath()`.
// https://caniuse.com/#feat=mdn-api_event_composedpath
path?: Element[];
}

declare interface Window {
VERDACCIO_API_URL?: string;
__VERDACCIO_BASENAME_UI_OPTIONS?: Record<string, string>;
interface Window {
VERDACCIO_API_URL?: string;
__VERDACCIO_BASENAME_UI_OPTIONS?: TemplateUIOptions;
}
}

0 comments on commit 6d205d8

Please sign in to comment.