From ac0e98e721986539dfdb89275e26637a0710eaa2 Mon Sep 17 00:00:00 2001 From: flarum-bot Date: Wed, 14 Jul 2021 14:15:44 +0000 Subject: [PATCH] Bundled output for commit 5a1948c4fcca0636b3284d5505da983fdf08404f Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci] --- js/dist-typings/@types/global/index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/js/dist-typings/@types/global/index.d.ts b/js/dist-typings/@types/global/index.d.ts index 3fa15be23..9d830686b 100644 --- a/js/dist-typings/@types/global/index.d.ts +++ b/js/dist-typings/@types/global/index.d.ts @@ -30,6 +30,19 @@ declare global { interface JQuery { tooltip: TooltipJQueryFunction; } + + /** + * For more info, see: https://www.typescriptlang.org/docs/handbook/jsx.html#attribute-type-checking + * + * In a nutshell, we need to add `ElementAttributesProperty` to tell Typescript + * what property on component classes to look at for attribute typings. For our + * Component class, this would be `attrs` (e.g. `this.attrs...`) + */ + namespace JSX { + interface ElementAttributesProperty { + attrs: Record; + } + } } /**