| 123456789101112 |
- export const SocketEventName = {
- UpdateDescCount: 'UpdateDsecCount',
- } as const;
- export type SocketEventName = typeof SocketEventName[keyof typeof SocketEventName];
- type PageId = string;
- type DescendantCount = number;
- /**
- * Data of updateDescCount when used through socket.io. Convert to UpdateDescCountData type when use with swr cache.
- */
- export type UpdateDescCountRawData = Record<PageId, DescendantCount>;
- export type UpdateDescCountData = Map<PageId, DescendantCount>;
|