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