Make Typescript happy, testing CI build.

Adjust language names.
This commit is contained in:
Paul
2021-08-30 16:08:22 +01:00
parent 17c09baf89
commit b364fe50f6
7 changed files with 23 additions and 13 deletions

View File

@@ -15,6 +15,7 @@ import { Children } from "../../types/Preact";
import { useIntermediate } from "../intermediate/Intermediate";
import { registerEvents, setReconnectDisallowed } from "./events";
import { takeError } from "./util";
import { Session } from "revolt-api/types/Auth";
export enum ClientStatus {
INIT,
@@ -79,7 +80,7 @@ function Context({ auth, children }: Props) {
const login = () =>
dispatch({
type: "LOGIN",
session: client.session!, // This [null assertion] is ok, we should have a session by now. - insert's words
session: client.session as Session,
});
if (onboarding) {