forked from polka_billy/porridger
Code styling
Added brackets for const lambdas Converted const lambdas with multiple instructions to functions
This commit is contained in:
@ -9,8 +9,9 @@ import { ${NAME}Response, ${NAME} } from './types'
|
||||
|
||||
const initial${NAME}: ${NAME} = {}
|
||||
|
||||
const compose${NAME}URL = () =>
|
||||
const compose${NAME}URL = () => (
|
||||
API_URL + '/${NAME,}?'
|
||||
)
|
||||
|
||||
const process${NAME} = (data: ${NAME}Response): ${NAME} => {
|
||||
return data
|
||||
@ -26,19 +27,21 @@ type ${NAME}Response = {
|
||||
|
||||
}
|
||||
|
||||
const is${NAME}Response = (obj: unknown): obj is ${NAME}Response =>
|
||||
const is${NAME}Response = (obj: unknown): obj is ${NAME}Response => (
|
||||
isObject(obj, {
|
||||
|
||||
})
|
||||
)
|
||||
|
||||
type ${NAME} = {
|
||||
|
||||
}
|
||||
|
||||
const is${NAME} = (obj: unknown): obj is ${NAME} =>
|
||||
const is${NAME} = (obj: unknown): obj is ${NAME} => (
|
||||
isObject(obj, {
|
||||
|
||||
})
|
||||
)
|
||||
|
||||
export type { ${NAME}Response, ${NAME} }
|
||||
|
||||
|
Reference in New Issue
Block a user