Skip to content

Commit 093b065

Browse files
committed
Some fixes
1 parent 7ea1a88 commit 093b065

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/debugger/src/inspector/inspector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {misc} from '@nothing-but/utils'
2-
import {parseLocationString, type SourceLocation} from '../locator/index.ts'
2+
import {parseLocationString} from '../locator/index.ts'
33
import {ObjectType, getSdtId} from '../main/id.ts'
44
import {observeValueUpdate, removeValueUpdateObserver} from '../main/observe.ts'
55
import setup from '../main/setup.ts'
6-
import {type Mapped, type NodeID, type Solid, type ValueItemID, NodeType, ValueItemType} from '../main/types.ts'
6+
import {type Mapped, type NodeID, type Solid, type SourceLocation, type ValueItemID, NodeType, ValueItemType} from '../main/types.ts'
77
import * as utils from '../main/utils.ts'
88
import {UNOWNED_ROOT} from '../main/roots.ts'
99
import {encodeValue} from './serialize.ts'

packages/debugger/src/locator/element-overlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function createElementsOverlay<TEl extends object>(
2323
if (rect === null) return prev
2424

2525
return rect
26-
}, {x: 0, y: 0, w: 0, h: 0})
26+
}, {x: 0, y: 0, width: 0, height: 0})
2727

2828
const transform = () => `translate(${Math.round(rect().x)}px, ${Math.round(rect().y)}px)`
2929
const placeOnTop = () => rect().y > window.innerHeight / 2

packages/debugger/src/locator/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ vi.mock('@solid-primitives/platform', () => ({
88
},
99
}))
1010

11-
const fetchFunction = async () => (await import('./find-components.ts')).parseLocationString
11+
const fetchFunction = async () => (await import('./locator.ts')).parseLocationString
1212

1313
describe('locator attribute pasting', () => {
1414
beforeEach(() => {

packages/debugger/src/locator/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function createLocator<TEl extends object>(props: {
169169
return
170170
}
171171

172-
let source_code_data = locator.getSourceCodeData(comp.location, comp.element)
172+
let source_code_data = locator.getSourceCodeData(comp.location, comp.element as any)
173173
if (source_code_data == null) {
174174
DEV: {warn("Locator: can't find source code data for component (comp=%o)", comp)}
175175
return

0 commit comments

Comments
 (0)