From 69629344161950bf776af129dcf59c6890639197 Mon Sep 17 00:00:00 2001 From: Pascal Barth Date: Wed, 17 Sep 2025 11:06:29 +0200 Subject: [PATCH] Add optional "catch 'em all" attribute Templates can declare as many attributes as they require, so I've added a broad definition of that in the attribute type. This should cover things like: - copyright - specific URL needed for the template (QR code URL, etc...) - print date --- src/types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types.ts b/src/types.ts index 99b8386..18f1101 100644 --- a/src/types.ts +++ b/src/types.ts @@ -156,6 +156,8 @@ export interface MFPLegend { export interface MFPAttributes { map: MFPMap; legend: MFPLegend; + // There can be many other "optional" attributes, a template can declare as many as needed + [key: string]: unknown; } export interface MFPSpec {