This commit is contained in:
tamaina
2023-05-10 17:48:21 +00:00
parent 3324f3fa15
commit ac99cdce8b
8 changed files with 20 additions and 20 deletions

View File

@@ -1,3 +1,6 @@
export type Packed<x extends keyof typeof refs> = SchemaType<typeof refs[x]>;
import {
packedUserLiteSchema,
packedUserDetailedNotMeOnlySchema,
@@ -64,8 +67,6 @@ export const refs = {
Flash: packedFlashSchema,
};
export type Packed<x extends keyof typeof refs> = SchemaType<typeof refs[x]>;
type TypeStringef = 'null' | 'boolean' | 'integer' | 'number' | 'string' | 'array' | 'object' | 'any';
type StringDefToType<T extends TypeStringef> =
T extends 'null' ? null :