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 />;
} else {
var timeslotid = null;
var timeslotid: number | null = null;
if ("timeslot_id" in q) {
timeslotid = q.timeslot_id;
} else if (currentTimeslot.timeslot_id != null) {

View file

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

View file

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