Code styling
Added brackets for const lambdas Converted const lambdas with multiple instructions to functions
This commit is contained in:
@ -4,7 +4,9 @@ const categories = ['PORRIDGE', 'conspects', 'milk', 'bred', 'wathing', 'cloth',
|
||||
'fruits_vegatables', 'soup', 'dinner', 'conserves', 'pens', 'other_things'] as const
|
||||
type Category = typeof categories[number]
|
||||
|
||||
const isCategory = (obj: unknown): obj is Category => isLiteralUnion(obj, categories)
|
||||
const isCategory = (obj: unknown): obj is Category => (
|
||||
isLiteralUnion(obj, categories)
|
||||
)
|
||||
|
||||
const categoryGraphics: Record<Category, string> = {
|
||||
'PORRIDGE': 'static/PORRIDGE.jpg',
|
||||
|
Reference in New Issue
Block a user