Commit 10d7efb
Sushil Khairnar
fix: resolve TypeScript ESLint unsafe member access errors in PGliteInstanceManager
- Add proper type guards for PgParseResult to handle error and success cases
- Replace unsafe member access with type-safe checks using isParseError/isParseSuccess
- Isolate type assertions to dedicated helper functions
- Add fallback handling for edge cases where neither error nor parse_tree exist
Fixes unsafe member access violations on parseResult.error and parseResult.parse_tree1 parent f0b8dd1 commit 10d7efb
File tree
1 file changed
+22
-6
lines changed- frontend/internal-packages/pglite-server/src
1 file changed
+22
-6
lines changedLines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
65 | 77 | | |
66 | 78 | | |
67 | 79 | | |
68 | 80 | | |
69 | | - | |
| 81 | + | |
70 | 82 | | |
71 | 83 | | |
72 | 84 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
78 | 94 | | |
79 | 95 | | |
80 | 96 | | |
| |||
0 commit comments