|
|
@@ -1,11 +1,12 @@
|
|
|
import { IUser } from '~/interfaces/user';
|
|
|
+import { IPage } from '~/interfaces/page';
|
|
|
|
|
|
export interface IPageSnapshot {
|
|
|
path: string
|
|
|
creator: IUser
|
|
|
}
|
|
|
|
|
|
-export const stringifySnapshot = (page: IPageSnapshot): string => {
|
|
|
+export const stringifySnapshot = (page: IPage): string => {
|
|
|
return JSON.stringify({
|
|
|
path: page.path,
|
|
|
creator: page.creator,
|