Skip to content

Commit d4a5ff1

Browse files
committed
fix(types): fix TypeScript 6 compatibility in globals.d.ts
- Add 'declare module *.css {}' so CSS side-effect imports satisfy TS2882 - Make EasyButtonOptions.states optional to match upstream leaflet-easybutton types and fix TS2687 declaration-modifier mismatch
1 parent edc29e2 commit d4a5ff1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/map-engine/globals.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ declare global {
5555
}
5656

5757
interface EasyButtonOptions {
58-
states: EasyButtonState[];
58+
states?: EasyButtonState[];
5959
}
6060

6161
interface EasyButtonControl {
@@ -67,4 +67,6 @@ declare global {
6767
}
6868
}
6969

70+
declare module '*.css' {}
71+
7072
export {};

0 commit comments

Comments
 (0)