mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
svelte+ts tweaks
This commit is contained in:
parent
dcff5e28fa
commit
5906dcce70
2 changed files with 6 additions and 3 deletions
|
@ -23,7 +23,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
switch (range) {
|
const rangeTmp = range as GraphRange; // ts workaround
|
||||||
|
switch (rangeTmp) {
|
||||||
case GraphRange.Month:
|
case GraphRange.Month:
|
||||||
days = 31;
|
days = 31;
|
||||||
break;
|
break;
|
||||||
|
@ -34,7 +35,7 @@
|
||||||
days = 0;
|
days = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assertUnreachable(range);
|
assertUnreachable(rangeTmp);
|
||||||
}
|
}
|
||||||
console.log("refresh");
|
console.log("refresh");
|
||||||
refresh();
|
refresh();
|
||||||
|
|
|
@ -2,6 +2,8 @@ const sveltePreprocess = require("svelte-preprocess");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
preprocess: sveltePreprocess({
|
preprocess: sveltePreprocess({
|
||||||
typescript: { compilerOptions: { declaration: false, outDir: null } },
|
typescript: {
|
||||||
|
transpileOnly: true,
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue