From bb7b8ee00bd2c7d26e82c2eb4a0571023e821d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 15 Mar 2022 01:36:07 +0100 Subject: Introduce user-additions in frontend. Along with an initial example of their use. --- static/formatters.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'static/formatters.ts') diff --git a/static/formatters.ts b/static/formatters.ts index 38c71e5e..828a0e8b 100644 --- a/static/formatters.ts +++ b/static/formatters.ts @@ -4,6 +4,12 @@ export { import { makeElement } from './lib' +declare global { + interface Window { + formatters : Map void>; + } +} + let formatters : Map void>; formatters = window.formatters = new Map(); -- cgit v1.2.3