Skip to content

Commit

Permalink
fix(type-helper): convert interface to type
Browse files Browse the repository at this point in the history
BREAKING CHANGE: make values as `optional`
  • Loading branch information
mohammadhonarvar authored and alimd committed Sep 29, 2024
1 parent b6f70d0 commit c9e6970
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/type-helper/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ export interface HasAddEventListener {
/**
* Represents a dictionary object with string keys and values of type T.
*/
export interface Dictionary<T = any> {
[key: string]: T;
}
export type Dictionary<T = any> = {[key in string]?: T};

/**
* Matches any valid JSON primitive value.
Expand Down

0 comments on commit c9e6970

Please sign in to comment.