mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
chore: fix js imports resolution
This commit is contained in:
parent
251878bb69
commit
5ca9d3a701
4 changed files with 20 additions and 8 deletions
|
|
@ -9,7 +9,7 @@ interface PlatformContext {
|
||||||
openExternal: (url: string) => void;
|
openExternal: (url: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const PlatformContext = createContext<PlatformContext | null>(null);
|
const PlatformContext = createContext<PlatformContext>({} as PlatformContext);
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
children: JSX.Element;
|
children: JSX.Element;
|
||||||
|
|
|
||||||
8
src/common/useBinaryState.d.ts
vendored
Normal file
8
src/common/useBinaryState.d.ts
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
declare const useBinaryState: (initialValue?: boolean) => [
|
||||||
|
boolean,
|
||||||
|
() => void,
|
||||||
|
() => void,
|
||||||
|
() => void,
|
||||||
|
];
|
||||||
|
|
||||||
|
export = useBinaryState;
|
||||||
9
src/modules.d.ts
vendored
9
src/modules.d.ts
vendored
|
|
@ -1,3 +1,6 @@
|
||||||
declare module '*.less';
|
declare module '*.less' {
|
||||||
declare module 'stremio/common';
|
const resource: { [key: string]: string };
|
||||||
declare module 'stremio/common/*';
|
export = resource;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module 'stremio/common/Button';
|
||||||
|
|
@ -2,10 +2,11 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["DOM", "DOM.Iterable"],
|
"lib": ["DOM", "DOM.Iterable"],
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"baseUrl": "src",
|
"baseUrl": "./src",
|
||||||
|
"outDir": "./dist",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"paths": {
|
"paths": {
|
||||||
"stremio/*": ["src/*"],
|
"stremio/*": ["*"],
|
||||||
},
|
},
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
|
@ -15,6 +16,6 @@
|
||||||
"strict": true,
|
"strict": true,
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src",
|
"src/",
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue