Skip to content

Commit 445e91d

Browse files
🤖 dprint fmt
1 parent 3419dc1 commit 445e91d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

types/sharedb/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare class sharedb extends EventEmitter {
7373
agent: Agent,
7474
index: string,
7575
id: string,
76-
op: SubmitRequest['op'],
76+
op: SubmitRequest["op"],
7777
options: ShareDB.BackendSubmitOptions | null,
7878
callback: (error: Error | null, ops: any[], request?: SubmitRequest) => void,
7979
): void;

types/sharedb/lib/sharedb.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ export interface RawOp {
104104
d: DocumentID;
105105
}
106106

107-
export type CreateOp = Partial<RawOp> & { create: { type: string; data: any }; };
108-
export type DeleteOp = Partial<RawOp> & { del: boolean; };
109-
export type EditOp = Partial<RawOp> & { op: any[]; };
107+
export type CreateOp = Partial<RawOp> & { create: { type: string; data: any } };
108+
export type DeleteOp = Partial<RawOp> & { del: boolean };
109+
export type EditOp = Partial<RawOp> & { op: any[] };
110110

111111
export type OTType = "ot-text" | "ot-json0" | "ot-json1" | "ot-text-tp2" | "rich-text";
112112

types/sharedb/sharedb-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ console.log(backend.extraDbs);
9292
backend.addProjection("notes_minimal", "notes", { title: true, creator: true, lastUpdateTime: true });
9393
const readonlyProjection = backend.projections["notes_minimal"];
9494
console.log(readonlyProjection.target, readonlyProjection.fields);
95-
backend.submit({} as Agent, "notes_minimal", "doc1", { create: { data: {}, type: 'json uri type' } }, {
95+
backend.submit({} as Agent, "notes_minimal", "doc1", { create: { data: {}, type: "json uri type" } }, {
9696
customField: true,
9797
anotherOption: { nested: "value" },
9898
}, (error, ops, request) => {

0 commit comments

Comments
 (0)