global.d.ts 495 B

123456789101112131415161718
  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 "*.svg" {
  8. /** Content of the SVG file as a string */
  9. const htmlContent: string;
  10. export default htmlContent;
  11. }
  12. declare module "*.md" {
  13. /** Content of the markdown file, converted to an HTML string */
  14. const htmlContent: string;
  15. export default htmlContent;
  16. }