Move the instance definition to the Window
This commit is contained in:
parent
0cec74cc2b
commit
e5c2d17015
2 changed files with 62 additions and 41 deletions
2
src/@types/global.d.ts
vendored
2
src/@types/global.d.ts
vendored
|
@ -15,10 +15,12 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import * as ModernizrStatic from "modernizr";
|
||||
import { IMatrixClientPeg } from "../MatrixClientPeg";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
Modernizr: ModernizrStatic;
|
||||
mxMatrixClientPeg: IMatrixClientPeg;
|
||||
Olm: {
|
||||
init: () => Promise<void>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue