feat(assets): add TypeScript type declarations for Hugo @params module

Add proper type definitions for Hugo's `@params` virtual module, configure
tsconfig paths/typeRoots for resolution, and remove the @ts-expect-error
suppress in color-scheme.ts. Also fix nil input handling in camel-case-keys.
This commit is contained in:
Cell
2026-07-16 15:51:25 +08:00
parent 3242dbf2fb
commit 54fb90388f
5 changed files with 16 additions and 3 deletions
@@ -26,7 +26,7 @@
// Practical usage in templates
{{- $siteParams := partial "function/camel-case-keys.html" .Site.Params }}
*/ -}}
{{- $input := . -}}
{{- $input := . | default dict -}}
{{- $output := dict -}}
{{- if reflect.IsMap $input -}}