Skip to content

Commit

Permalink
fix(typescript): fix fucking typescript config for cross npm declarat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
zoltanszogyenyi committed Jun 26, 2024
1 parent 6d1fbf3 commit 1e0d112
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { initInputCounters } from './components/input-counter';
import { initCopyClipboards } from './components/clipboard';
import { initDatepickers } from './components/datepicker';
import './components/index';
import './types/declarations';

// setup events for data attributes
const events = new Events('load', [
Expand Down
3 changes: 0 additions & 3 deletions src/declarations.d.ts → src/types/declarations.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// src/flowbite-datepicker-1.3.0.d.ts
/* eslint-disable @typescript-eslint/no-explicit-any */

declare module 'flowbite-datepicker-1.3.0' {
export class Datepicker {
constructor(element: HTMLElement, options: any);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"allowJs": true,
"moduleResolution": "node"
},
"include": ["src/**/*.ts"],
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/types/**/*.d.ts"],
"exclude": ["node_modules", "dist", "lib"],
"typeRoots": ["./node_modules/@types", "./src"]
}

0 comments on commit 1e0d112

Please sign in to comment.