Explorar o código

add type to model

yohei0125 %!s(int64=4) %!d(string=hai) anos
pai
achega
27f3231e08
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      packages/app/src/server/models/page-operation.ts

+ 6 - 0
packages/app/src/server/models/page-operation.ts

@@ -28,6 +28,12 @@ export const PageActionStage = {
 } as const;
 export type PageActionStage = typeof PageActionStage[keyof typeof PageActionStage];
 
+export const PageOperationAutoUpdateTimerType = {
+  ExtendSec: 5, // add this second(s) to current time
+  IntervalSec: 5, // every this second(s)
+  SelfStopSec: 20, // execute self-stop after this second(s)
+} as const;
+
 /*
  * Main Schema
  */