File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 99 "devDependencies" : {
1010 "@stacksjs/docs" : " ^0.70.23" ,
1111 "@stacksjs/eslint-config" : " ^4.14.0-beta.3" ,
12+ "@types/bun" : " ^1.3.0" ,
1213 "better-dx" : " ^0.1.7" ,
14+ "buddy-bot" : " ^0.9.9" ,
15+ "bun-plugin-dtsx" : " ^0.9.5" ,
16+ "typescript" : " ^5.9.3" ,
1317 },
1418 },
1519 "packages/benchmarks" : {
Original file line number Diff line number Diff line change 9393 "devDependencies" : {
9494 "@stacksjs/docs" : " ^0.70.23" ,
9595 "@stacksjs/eslint-config" : " ^4.14.0-beta.3" ,
96- "better-dx" : " ^0.1.7"
96+ "@types/bun" : " ^1.3.0" ,
97+ "better-dx" : " ^0.1.7" ,
98+ "buddy-bot" : " ^0.9.9" ,
99+ "bun-plugin-dtsx" : " ^0.9.5" ,
100+ "typescript" : " ^5.9.3"
97101 }
98102}
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ const document = window.document
1313globalThis . window = window as any
1414globalThis . document = document as any
1515globalThis . navigator = window . navigator as any
16- globalThis . location = window . location as any
17- globalThis . HTMLElement = window . HTMLElement as any
16+ globalThis . location = ( window as any ) . location as any
17+ globalThis . HTMLElement = ( window as any ) . HTMLElement as any
1818globalThis . Element = VirtualElement as any
19- globalThis . Node = window . Node as any
19+ globalThis . Node = ( window as any ) . Node as any
2020
2121// Use VirtualEvent as Event polyfill since very-happy-dom doesn't expose window.Event
2222globalThis . Event = VirtualEvent as any
@@ -369,7 +369,7 @@ if (typeof globalThis.IntersectionObserver === 'undefined') {
369369}
370370
371371// Add getComputedStyle if not implemented
372- if ( typeof window . getComputedStyle === 'undefined' ) {
372+ if ( typeof ( window as any ) . getComputedStyle === 'undefined' ) {
373373 ; ( window as any ) . getComputedStyle = function ( element : Element ) : CSSStyleDeclaration {
374374 // very-happy-dom stores inline styles in _internalStyles Map
375375 const internalStyles = ( element as any ) . _internalStyles as Map < string , string > | undefined
You can’t perform that action at this time.
0 commit comments