Skip to content

Commit

Permalink
revert store file
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Oct 10, 2023
1 parent 3b50972 commit c4a3cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/store/ts/config/storeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const zShorthandSchemaConfig = zFieldData.transform((fieldData) => {

export const zSchemaConfig = zFullSchemaConfig.or(zShorthandSchemaConfig);

export type ResolvedSchema<TSchema extends Record<string, string>, TUserTypes extends Record<string, UserType>> = {
type ResolvedSchema<TSchema extends Record<string, string>, TUserTypes extends Record<string, UserType>> = {
[key in keyof TSchema]: TSchema[key] extends keyof TUserTypes
? TUserTypes[TSchema[key]]["internalType"]
: TSchema[key];
Expand Down Expand Up @@ -301,7 +301,7 @@ export type FullUserTypesConfig<UserTypeNames extends StringForUnion> = {

const zUserTypeConfig = z.object({
filePath: z.string(),
internalType: z.enum<AbiType, [AbiType, ...AbiType[]]>(AbiTypes as [AbiType, ...AbiType[]]),
internalType: z.string(),
});

export const zUserTypesConfig = z.object({
Expand Down

0 comments on commit c4a3cf7

Please sign in to comment.