diff --git a/apps/desktop/src-tauri/native/macos/Sources/webview.swift b/apps/desktop/src-tauri/native/macos/Sources/webview.swift index f46c1a159..02388d90e 100644 --- a/apps/desktop/src-tauri/native/macos/Sources/webview.swift +++ b/apps/desktop/src-tauri/native/macos/Sources/webview.swift @@ -1,7 +1,8 @@ import WebKit @_cdecl("reload_webview") -public func reloadWebview(webview: WKWebView) -> () { +public func reloadWebview(webviewPtr: UnsafePointer) -> () { + let webview = webviewPtr.pointee; webview.window!.orderOut(webview); webview.reload(); webview.window!.makeKey(); diff --git a/crates/sync/example/web/src/App.tsx b/crates/sync/example/web/src/App.tsx index 13c4e5d1c..a1ecf0e40 100644 --- a/crates/sync/example/web/src/App.tsx +++ b/crates/sync/example/web/src/App.tsx @@ -67,7 +67,7 @@ interface DatabaseViewProps { const TABS = ['File Paths', 'Objects', 'Tags', 'Operations']; function DatabaseView(props: DatabaseViewProps) { - const [currentTab, setCurrentTab] = useState('Operations'); + const [currentTab, setCurrentTab] = useState<(typeof TABS)[number]>('Operations'); const pullOperations = rspc.useMutation('pullOperations'); diff --git a/packages/interface/src/components/explorer/FileRow.tsx b/packages/interface/src/components/explorer/FileRow.tsx index d4f15750e..a9c357382 100644 --- a/packages/interface/src/components/explorer/FileRow.tsx +++ b/packages/interface/src/components/explorer/FileRow.tsx @@ -89,6 +89,6 @@ const columns = ensureIsColumns([ { column: 'Type', key: 'extension', width: 100 } as const ]); -type ColumnKey = typeof columns[number]['key']; +type ColumnKey = (typeof columns)[number]['key']; export default FileRow;