Package: node-blueprintjs / 4.17.8~git20230417213433.6dab069+ds1-3

tsc-workaround.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description: tsc workarounds
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2023-04-18

--- a/packages/core/src/components/overlay/overlay.tsx
+++ b/packages/core/src/components/overlay/overlay.tsx
@@ -370,6 +370,7 @@
 
     private maybeRenderChild = (child?: React.ReactNode) => {
         if (isFunction(child)) {
+// @ts-ignore
             child = child();
         }
 
--- a/packages/core/src/components/popover/popover.tsx
+++ b/packages/core/src/components/popover/popover.tsx
@@ -232,6 +232,7 @@
                 <Popper
                     innerRef={this.handlePopoverRef}
                     placement={placement ?? positionToPlacement(position)}
+// @ts-ignore
                     modifiers={this.getPopperModifiers()}
                 >
                     {this.renderPopover}
@@ -326,6 +327,7 @@
         const { transformOrigin } = this.state;
 
         // Need to update our reference to this on every render as it will change.
+// @ts-ignore
         this.popperScheduleUpdate = popperProps.scheduleUpdate;
 
         const popoverHandlers: HTMLDivProps = {
@@ -346,6 +348,7 @@
                 [Classes.DARK]: this.props.inheritDarkTheme && this.state.hasDarkParent,
                 [Classes.MINIMAL]: this.props.minimal,
                 [Classes.POPOVER_CAPTURING_DISMISS]: this.props.captureDismiss,
+// @ts-ignore
                 [Classes.POPOVER_OUT_OF_BOUNDARIES]: popperProps.outOfBoundaries === true,
             },
             this.props.popoverClassName,