transpiling on main package

This commit is contained in:
lingdocs 2022-01-24 11:19:50 +04:00
parent 5a272095be
commit c97aebc96b
6 changed files with 6313 additions and 396 deletions

4129
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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,

View File

@ -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);

View File

@ -209,7 +209,7 @@ export class DictionaryDb {
dictionaryInfo: dictionary.info,
};
} catch (e) {
throw new Error(e);
throw new Error(e as string);
}
}

2571
yarn.lock

File diff suppressed because it is too large Load Diff