Cosmetics (typescript)

This commit is contained in:
Eric van der Vlist 2023-06-13 11:04:45 +02:00
parent 7caf088a7e
commit 1d9d38c437
1 changed files with 3 additions and 3 deletions

View File

@ -24,15 +24,15 @@ interface TagStatus {
highlighted: boolean;
}
export const getTagStatus = <TagStatus>(
export const getTagStatus = (
tag: string,
definitions: TagDefinitions,
selectedKey: string,
highlightedKey: string
) => {
const defaultStatus = {
const defaultStatus: TagStatus = {
highlighted: false,
} as TagStatus;
};
const activityDefinitions = definitions[selectedKey];
if (!activityDefinitions) {
return defaultStatus;