Skip to content

Commit

Permalink
Adjust type
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Jun 30, 2024
1 parent 06fc6b6 commit f30df1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/elements/src/types/elementDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,7 @@ export interface ElementDefinition<E extends Element = Element> {
) => { height: number };
}

export type ElementTypes = Record<ElementType, ElementDefinition>;
export type ElementTypes<E extends Element = Element> = Record<
E['type'],
ElementDefinition<E>
>;

0 comments on commit f30df1f

Please sign in to comment.