diff options
author | Eric Bailey <git@esb.lol> | 2024-09-11 21:20:39 -0500 |
---|---|---|
committer | Eric Bailey <git@esb.lol> | 2024-09-11 21:20:39 -0500 |
commit | 9bb385a4dd54aca2b21533b7dd919ac8d0b4aeef (patch) | |
tree | 2cec2e58fc77e7e085d712624d482c62e80c94df /src/state/queries | |
parent | 63444052e8db9d2333b887a5ba5fd261e7df52db (diff) | |
download | voidsky-9bb385a4dd54aca2b21533b7dd919ac8d0b4aeef.tar.zst |
Refactor, integrate nux, snoozing
Diffstat (limited to 'src/state/queries')
-rw-r--r-- | src/state/queries/nuxs/definitions.ts | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/state/queries/nuxs/definitions.ts b/src/state/queries/nuxs/definitions.ts index c5cb1e9d9..865967d37 100644 --- a/src/state/queries/nuxs/definitions.ts +++ b/src/state/queries/nuxs/definitions.ts @@ -3,27 +3,16 @@ import zod from 'zod' import {BaseNux} from '#/state/queries/nuxs/types' export enum Nux { - One = 'one', - Two = 'two', + TenMillionDialog = 'TenMillionDialog', } export const nuxNames = new Set(Object.values(Nux)) -export type AppNux = - | BaseNux<{ - id: Nux.One - data: { - likes: number - } - }> - | BaseNux<{ - id: Nux.Two - data: undefined - }> +export type AppNux = BaseNux<{ + id: Nux.TenMillionDialog + data: undefined +}> -export const NuxSchemas = { - [Nux.One]: zod.object({ - likes: zod.number(), - }), - [Nux.Two]: undefined, +export const NuxSchemas: Record<Nux, zod.ZodObject<any> | undefined> = { + [Nux.TenMillionDialog]: undefined, } |