Switch "noImplicitAny" to allow wavesurfer plugins.

This commit is contained in:
Matthew Stratford 2020-04-19 22:47:30 +01:00
parent 81b120a911
commit bdd246a44a
3 changed files with 4 additions and 3 deletions

View file

@ -46,7 +46,7 @@ const App: React.FC = () => {
) { ) {
return <SessionHandler />; return <SessionHandler />;
} else { } else {
var timeslotid = null; var timeslotid: number | null = null;
if ("timeslot_id" in q) { if ("timeslot_id" in q) {
timeslotid = q.timeslot_id; timeslotid = q.timeslot_id;
} else if (currentTimeslot.timeslot_id != null) { } else if (currentTimeslot.timeslot_id != null) {

View file

@ -12,7 +12,7 @@ export async function apiRequest(
params: any, params: any,
need_auth: boolean = true need_auth: boolean = true
): Promise<Response> { ): Promise<Response> {
let req = null; var req: Promise<Response>| null = null;
if (method === "GET") { if (method === "GET") {
req = fetch(url + qs.stringify(params, { addQueryPrefix: true }), { req = fetch(url + qs.stringify(params, { addQueryPrefix: true }), {
credentials: need_auth ? "include" : "omit", credentials: need_auth ? "include" : "omit",

View file

@ -17,7 +17,8 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"noEmit": true, "noEmit": true,
"jsx": "react" "jsx": "react",
"noImplicitAny": false
}, },
"include": [ "include": [
"src" "src"