transpiling on main package
This commit is contained in:
parent
5a272095be
commit
c97aebc96b
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lingdocs/lingdocs-main",
|
||||
"version": "0.2.4",
|
||||
"version": "0.2.5",
|
||||
"description": "types and functions for lingdocs stuff",
|
||||
"main": "dist/library.js",
|
||||
"module": "dist/library.js",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
|
@ -14,7 +14,7 @@
|
|||
"downlevelIteration": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"module": "ES6",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
|
|
|
@ -17,6 +17,7 @@ export function AudioPlayButton({ word }: { word: WordlistWord }) {
|
|||
useEffect(() => {
|
||||
getAudioAttachment(word).then((audio) => {
|
||||
if (!audio) return;
|
||||
// @ts-ignore // TODO: FIX THIS!
|
||||
const src = URL.createObjectURL(audio);
|
||||
setSrc(src);
|
||||
setType("type" in audio ? audio.type : undefined);
|
||||
|
|
|
@ -209,7 +209,7 @@ export class DictionaryDb {
|
|||
dictionaryInfo: dictionary.info,
|
||||
};
|
||||
} catch (e) {
|
||||
throw new Error(e);
|
||||
throw new Error(e as string);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue