mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 13:23:28 +00:00
fix types (#2316)
This commit is contained in:
parent
c1e3f47f7d
commit
785dd74297
|
@ -1,5 +1,4 @@
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { stringify } from 'uuid';
|
|
||||||
import {
|
import {
|
||||||
CRDTOperation,
|
CRDTOperation,
|
||||||
CRDTOperationData,
|
CRDTOperationData,
|
||||||
|
@ -11,7 +10,7 @@ import { Button } from '@sd/ui';
|
||||||
import { useRouteTitle } from '~/hooks/useRouteTitle';
|
import { useRouteTitle } from '~/hooks/useRouteTitle';
|
||||||
|
|
||||||
type MessageGroup = {
|
type MessageGroup = {
|
||||||
model: string;
|
model: number;
|
||||||
id: string;
|
id: string;
|
||||||
messages: { data: CRDTOperationData; timestamp: number }[];
|
messages: { data: CRDTOperationData; timestamp: number }[];
|
||||||
};
|
};
|
||||||
|
|
|
@ -157,7 +157,7 @@ export type Backup = ({ id: string; timestamp: string; library_id: string; libra
|
||||||
|
|
||||||
export type BuildInfo = { version: string; commit: string }
|
export type BuildInfo = { version: string; commit: string }
|
||||||
|
|
||||||
export type CRDTOperation = { instance: string; timestamp: number; model: string; record_id: JsonValue; data: CRDTOperationData }
|
export type CRDTOperation = { instance: string; timestamp: number; model: number; record_id: JsonValue; data: CRDTOperationData }
|
||||||
|
|
||||||
export type CRDTOperationData = "c" | { u: { field: string; value: JsonValue } } | "d"
|
export type CRDTOperationData = "c" | { u: { field: string; value: JsonValue } } | "d"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue