pl-fe: types

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-11-26 18:46:44 +01:00
parent 5e1d0faabc
commit dddac128fb
10 changed files with 148 additions and 97 deletions

View File

@ -10,7 +10,7 @@ const tokenSchema = v.object({
scope: v.string(),
created_at: v.fallback(v.optional(v.number()), undefined),
id: v.fallback(v.optional(v.number()), undefined),
id: v.fallback(v.optional(v.pipe(v.unknown(), v.transform(String))), undefined),
refresh_token: v.fallback(v.optional(v.string()), undefined),
expires_in: v.fallback(v.optional(v.number()), undefined),
me: v.fallback(v.optional(v.string()), undefined),