projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c10910
)
Add typing support for the icon elements
author
Alexander Ebert
<ebert@woltlab.com>
Fri, 12 Aug 2022 14:47:05 +0000
(16:47 +0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Fri, 12 Aug 2022 19:25:55 +0000
(21:25 +0200)
global.d.ts
patch
|
blob
|
blame
|
history
diff --git
a/global.d.ts
b/global.d.ts
index 1d93f65962549beb08f1e45c04b6261187c30c01..251c2d10e3ccc9919605ddcb25d3921dfa8a4622 100644
(file)
--- a/
global.d.ts
+++ b/
global.d.ts
@@
-56,12
+56,18
@@
declare global {
interface FaBrand extends HTMLElement {
name: string;
size: IconSize;
- setIcon: (name: string, isSolid: boolean) => void;
}
interface FaIcon extends HTMLElement {
name: string;
solid: boolean;
size: IconSize;
+
+ setIcon: (name: string, isSolid: boolean) => void;
+ }
+
+ interface HTMLElementTagNameMap {
+ "fa-brand": FaBrand;
+ "fa-icon": FaIcon;
}
}