Skip to content

Commit

Permalink
fix types file
Browse files Browse the repository at this point in the history
  • Loading branch information
efstajas committed Jan 13, 2025
1 parent 899481f commit 02457ee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib/components/search-bar/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ export const dripListSchema = commonMeiliAttributes.extend({
export const resultSchema = z.union([projectResultSchema, dripListSchema]);
export const resultsSchema = z.array(resultSchema);

export type EnsResult = {
type: 'ens';
name: string;
export type AddressResult = {
type: 'address';
address: string;
};

export type ProjectResult = z.infer<typeof projectResultSchema>;
export type DripListResult = z.infer<typeof dripListSchema>;
export type Result = z.infer<typeof resultSchema> | EnsResult;
export type Result = z.infer<typeof resultSchema> | AddressResult;

0 comments on commit 02457ee

Please sign in to comment.