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 />;
|
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) {
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue