Skip to content

Commit

Permalink
add const type
Browse files Browse the repository at this point in the history
Signed-off-by: tygao <[email protected]>
  • Loading branch information
raintygao committed Dec 5, 2024
1 parent 2021419 commit d608927
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ export const isValidFormTextInput = (input?: string) => {
return typeof input === 'string' && regex.test(input);
};

export const EMPTY_PERMISSIONS = {
export const EMPTY_PERMISSIONS: SavedObjectPermissions = {
library_read: {},
library_write: {},
read: {},
write: {},
};
} as const;

export const getNumberOfErrors = (formErrors: WorkspaceFormErrors) => {
let numberOfErrors = 0;
Expand Down

0 comments on commit d608927

Please sign in to comment.