1
0

global.d.ts 573 B

123456789101112131415161718192021
  1. /** Import HTML as modules - https://stackoverflow.com/a/47705264/3323672 */
  2. declare module "*.html" {
  3. /** Content of the HTML file as a string */
  4. const htmlContent: string;
  5. export default htmlContent;
  6. }
  7. declare module "*.md" {
  8. /** Content of the markdown file, converted to an HTML string */
  9. const htmlContent: string;
  10. export default htmlContent;
  11. }
  12. // generic shim so TS doesn't complain *too* much
  13. declare global {
  14. interface Window {
  15. __proto__: {
  16. addEventListener: (evt: string, listener: () => unknown, capture?: boolean) => void;
  17. };
  18. }
  19. }