mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-06-28 23:39:11 +00:00
fix: resolve lint, format and type errors
This commit is contained in:
parent
539dd2acbd
commit
16045ca5ba
4 changed files with 9 additions and 7 deletions
|
@ -30,8 +30,8 @@ function sendToAnalytics(
|
|||
debug: boolean;
|
||||
}
|
||||
) {
|
||||
const page = Object.entries(options.params).reduce(
|
||||
(acc, [key, value]) => acc.replace(value, `[${key}]`),
|
||||
const page = (Object.entries(options.params) as [string, string][]).reduce(
|
||||
(acc: string, [key, value]: [string, string]) => acc.replace(value, `[${key}]`),
|
||||
options.path
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue