Convert ToastContainer and ToastStore to Typescript

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-05-22 12:47:40 +01:00
parent ac91304d8a
commit dc37469808
7 changed files with 98 additions and 79 deletions

View file

@ -15,6 +15,7 @@ limitations under the License.
*/
import * as ModernizrStatic from "modernizr";
import ToastStore from "../stores/ToastStore";
declare global {
interface Window {
@ -22,6 +23,8 @@ declare global {
Olm: {
init: () => Promise<void>;
};
mx_ToastStore: ToastStore;
}
// workaround for https://github.com/microsoft/TypeScript/issues/30933