fix(v2): i18n should not crash theme without footer (#3940)

* Fix theme translations when no footer

* fix TS issues
This commit is contained in:
Sébastien Lorber 2020-12-18 18:02:23 +01:00 committed by GitHub
parent 3fc29f4b14
commit ef49c2be72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 7 deletions

View file

@ -66,7 +66,7 @@ export type ThemeConfig = {
colorMode: any;
announcementBar: any;
prism: any;
footer: Footer;
footer: Footer | undefined;
hideableSidebar: any;
};