Skip to content

Commit 6962934

Browse files
committed
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
1 parent f554671 commit 6962934

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ export interface MFPLegend {
156156
export interface MFPAttributes {
157157
map: MFPMap;
158158
legend: MFPLegend;
159+
// There can be many other "optional" attributes, a template can declare as many as needed
160+
[key: string]: unknown;
159161
}
160162

161163
export interface MFPSpec {

0 commit comments

Comments
 (0)