chore(types): even more types

This commit is contained in:
Max Baumann
2020-12-13 21:11:23 +01:00
parent dde6b44005
commit 7b27de279b
4 changed files with 9 additions and 8 deletions

View File

@@ -2,18 +2,19 @@ import * as React from "react";
import * as ReactDOM from "react-dom";
import SubmissionNoticeComponent from "../components/SubmissionNoticeComponent";
import { ContentContainer } from "../types";
class SubmissionNotice {
// Contains functions and variables from the content script needed by the skip notice
contentContainer: () => any;
contentContainer: () => unknown;
callback: () => any;
callback: () => unknown;
noticeRef: React.MutableRefObject<SubmissionNoticeComponent>;
noticeElement: HTMLDivElement;
constructor(contentContainer: () => any, callback: () => any) {
constructor(contentContainer: ContentContainer, callback: () => unknown) {
this.noticeRef = React.createRef();
this.contentContainer = contentContainer;