Make Ui/Page/Action eslint clean
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 08:37:41 +0000 (09:37 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 09:50:35 +0000 (10:50 +0100)
wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Page/Action.ts

index b4b97ab32e46a64c13967666b1ddef585ed6ed21..83a083ead0a3b3ec186ab8a4e7867630dc2159ec 100644 (file)
@@ -85,7 +85,7 @@ function renderContainer() {
 /**
  * Initializes the page action container.
  */
-export function setup() {
+export function setup(): void {
   if (_didInit) {
     return;
   }
@@ -114,7 +114,7 @@ export function setup() {
  * insert the button right before it. Unmatched button names or empty value will cause
  * the button to be prepended to the list.
  */
-export function add(buttonName: string, button: HTMLElement, insertBeforeButton?: string) {
+export function add(buttonName: string, button: HTMLElement, insertBeforeButton?: string): void {
   setup();
 
   // The wrapper is required for backwards compatibility, because some implementations rely on a