Merge pull request #13271 from vector-im/t3chguy/cmd_rageshake

Use matrix-react-sdk type extensions as a base
pull/13295/head
Michael Telatynski 2020-04-20 16:00:27 +01:00 committed by GitHub
commit fd343b069e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 11 deletions

View File

@ -14,25 +14,15 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import "modernizr";
import "matrix-react-sdk/src/@types/global"; // load matrix-react-sdk's type extensions first
import {Renderer} from "react-dom";
declare global {
interface Window {
Modernizr: ModernizrAPI & FeatureDetects;
Olm: {
init: () => Promise<void>;
};
mxSendRageshake: (text: string, withLogs?: boolean) => void;
matrixChat: ReturnType<Renderer>;
// electron-only
ipcRenderer: any;
}
// workaround for https://github.com/microsoft/TypeScript/issues/30933
interface ObjectConstructor {
fromEntries?(xs: [string|number|symbol, any][]): object
}
}