mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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:
|
||||
days = 31;
|
||||
break;
|
||||
|
@ -34,7 +35,7 @@
|
|||
days = 0;
|
||||
break;
|
||||
default:
|
||||
assertUnreachable(range);
|
||||
assertUnreachable(rangeTmp);
|
||||
}
|
||||
console.log("refresh");
|
||||
refresh();
|
||||
|
|
|
@ -2,6 +2,8 @@ const sveltePreprocess = require("svelte-preprocess");
|
|||
|
||||
module.exports = {
|
||||
preprocess: sveltePreprocess({
|
||||
typescript: { compilerOptions: { declaration: false, outDir: null } },
|
||||
typescript: {
|
||||
transpileOnly: true,
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue