Skip to content

Commit

Permalink
fix: move *.html to astro/env
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Jul 21, 2022
1 parent 073913b commit 41820f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/astro/client.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/// <reference types="vite/types/importMeta" />

// HTML
declare module "*.html" {
const Component: { render(opts: { slots: Record<string, string> }): string };
export default content;
}

// CSS modules
type CSSModuleClasses = { readonly [key: string]: string };

Expand Down
5 changes: 5 additions & 0 deletions packages/astro/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ declare module '*.md' {
const load: MD['default'];
export default load;
}

declare module "*.html" {
const Component: { render(opts: { slots: Record<string, string> }): string };
export default Component;
}

0 comments on commit 41820f9

Please sign in to comment.