Skip to content

Commit 741d8bc

Browse files
committed
wip
1 parent df227c5 commit 741d8bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/signals/signals/src/core/signal-generators/dom-gen/navigation-gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { SignalGenerator } from '../types'
66

77
function getURLDifferences(url1: URL, url2: URL): ChangedProperties[] {
88
const changed: ChangedProperties[] = []
9-
const propertiesToCompare: (keyof URL)[] = ['pathname', 'search', 'hash']
9+
const propertiesToCompare = ['pathname', 'search', 'hash'] as const
1010

1111
for (const property of propertiesToCompare) {
1212
if (url1[property] !== url2[property]) {
1313
if (property === 'pathname') {
1414
changed.push('path')
1515
} else {
16-
changed.push(property as ChangedProperties)
16+
changed.push(property)
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)