Remove clutter

This commit is contained in:
Andras Schmelczer 2026-04-26 18:19:01 +01:00
parent 81c7e0c984
commit 439de6a264
9 changed files with 12 additions and 16 deletions

View file

@ -8,7 +8,7 @@
* constructor using Object.defineProperty so we don't need conflicting
* get/set accessor pairs.
*/
export class ManagedWebSocket implements WebSocket {
class ManagedWebSocket implements WebSocket {
public static readonly CONNECTING = WebSocket.CONNECTING;
public static readonly OPEN = WebSocket.OPEN;
public static readonly CLOSING = WebSocket.CLOSING;

View file

@ -1,6 +1,6 @@
import * as net from "node:net";
export interface PortReservation {
interface PortReservation {
port: number;
release: () => void;
}

View file

@ -79,7 +79,7 @@ class NavStore {
export const nav = new NavStore();
// Toasts
export interface Toast {
interface Toast {
id: number;
message: string;
type: "success" | "error" | "info";

View file

@ -2,9 +2,9 @@ import { Command, Option } from "commander";
import packageJson from "../package.json";
import { LogLevel } from "sync-client";
export type LineEndingMode = "auto" | "lf" | "crlf";
type LineEndingMode = "auto" | "lf" | "crlf";
export interface CliArgs {
interface CliArgs {
remoteUri: string;
token: string;
vaultName: string;

View file

@ -1,2 +0,0 @@
// This file is intentionally empty
// All document tracking has been moved to sync-event-queue.ts

View file

@ -1,7 +0,0 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export interface UpdateDocumentVersion {
parent_version_id: bigint;
relative_path: string;
content: number[];
}

View file

@ -16,7 +16,7 @@ export interface DocumentWithPath {
record: DocumentRecord;
}
export interface StoredDocument extends DocumentRecord {
interface StoredDocument extends DocumentRecord {
relativePath: RelativePath;
}

View file

@ -28,7 +28,7 @@ export interface SyncDeleteDetails {
relativePath: RelativePath;
}
export interface SyncSkippedDetails {
interface SyncSkippedDetails {
type: SyncType.SKIPPED;
relativePath: RelativePath;
}

View file

@ -8,7 +8,12 @@ cd sync-server
cargo test export_bindings
cd -
# sync-client/src/services/types contains only generated bindings — wipe and copy
rm -f frontend/sync-client/src/services/types/*.ts
cp -r sync-server/bindings/* frontend/sync-client/src/services/types/
# history-ui/src/lib/types contains generated bindings plus a hand-written index.ts
find frontend/history-ui/src/lib/types -maxdepth 1 -name "*.ts" ! -name "index.ts" -delete
cp -r sync-server/bindings/* frontend/history-ui/src/lib/types/
cd frontend