mirror of
https://github.com/flarum/core.git
synced 2025-07-18 07:11:17 +02:00
Bundled output for commit 065a3a9799
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
@@ -30,6 +30,19 @@ declare global {
|
|||||||
interface JQuery {
|
interface JQuery {
|
||||||
tooltip: TooltipJQueryFunction;
|
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<string, unknown>;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user