pl-fe: wip valibot migration

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-10-16 17:30:05 +02:00
parent a521c9044d
commit 905e1626a4
29 changed files with 75 additions and 63 deletions

View File

@ -1,10 +1,10 @@
import * as v from 'valibot';
const historySchema = v.object({
const historySchema = v.array(v.object({
day: v.pipe(v.unknown(), v.transform(Number)),
accounts: v.pipe(v.unknown(), v.transform(Number)),
uses: v.pipe(v.unknown(), v.transform(Number)),
});
}));
/** @see {@link https://docs.joinmastodon.org/entities/tag} */
const tagSchema = v.object({