refactoring, linting, formatting
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { PageRef } from '../pdf/pdfTypes';
|
||||
import type { PageRef } from "../pdf/pdfTypes";
|
||||
|
||||
export interface WorkspaceCommandState {
|
||||
pages: PageRef[];
|
||||
@@ -26,7 +26,7 @@ export interface WorkspaceCommand extends WorkspaceCommandRecord {
|
||||
}
|
||||
|
||||
export function cloneCommandState(
|
||||
state: WorkspaceCommandState
|
||||
state: WorkspaceCommandState,
|
||||
): WorkspaceCommandState {
|
||||
return {
|
||||
pages: state.pages.map((page) => ({ ...page })),
|
||||
@@ -58,7 +58,7 @@ export function createSnapshotCommand(params: {
|
||||
}
|
||||
|
||||
export function reviveWorkspaceCommand(
|
||||
record: WorkspaceCommandRecord
|
||||
record: WorkspaceCommandRecord,
|
||||
): WorkspaceCommand {
|
||||
return {
|
||||
...record,
|
||||
@@ -68,7 +68,7 @@ export function reviveWorkspaceCommand(
|
||||
}
|
||||
|
||||
export function toWorkspaceCommandRecord(
|
||||
command: WorkspaceCommand
|
||||
command: WorkspaceCommand,
|
||||
): WorkspaceCommandRecord {
|
||||
return {
|
||||
id: command.id,
|
||||
@@ -81,4 +81,4 @@ export function toWorkspaceCommandRecord(
|
||||
details: command.payload.details,
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user