Switch "noImplicitAny" to allow wavesurfer plugins.
This commit is contained in:
parent
81b120a911
commit
bdd246a44a
3 changed files with 4 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"jsx": "react"
|
||||
"jsx": "react",
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
|
|
Loading…
Reference in a new issue