Skip to content

Commit

Permalink
fix(types): fixup types (#195)
Browse files Browse the repository at this point in the history
Make PrefsMods more flexible
Update Action type field to be optional

refs: SHELL-6 (#195)
  • Loading branch information
beawar authored Feb 1, 2023
1 parent e0621c3 commit ae3f2ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/integrations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type Action = {
label: string;
icon: string;
click: (ev: SyntheticEvent<HTMLElement> | KeyboardEvent) => void;
type: 'divider';
type?: 'divider';
primary?: boolean;
group?: string;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion types/network/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export type IdentityMods = {
createList?: { prefs: CreateIdentityProps }[];
};

export type PrefsMods = Record<string, string | number | boolean>;
export type PrefsMods = Record<string, unknown>;

export type Mods = Record<string, Record<string, unknown>> & {
props?: PropsMods;
Expand Down

0 comments on commit ae3f2ca

Please sign in to comment.