Skip to content

Commit

Permalink
Update paths inside .d.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Aug 22, 2022
1 parent 1c818d9 commit 0714a8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/astro/astro-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ declare namespace astroHTML.JSX {
children?: Children;
}

type AstroBuiltinProps = import('./dist/types/@types/astro').AstroBuiltinProps;
type AstroBuiltinAttributes = import('./dist/types/@types/astro').AstroBuiltinAttributes;
type AstroDefineVarsAttribute = import('./dist/types/@types/astro').AstroDefineVarsAttribute;
type AstroScriptAttributes = import('./dist/types/@types/astro').AstroScriptAttributes &
type AstroBuiltinProps = import('./dist/@types/astro').AstroBuiltinProps;
type AstroBuiltinAttributes = import('./dist/@types/astro').AstroBuiltinAttributes;
type AstroDefineVarsAttribute = import('./dist/@types/astro').AstroDefineVarsAttribute;
type AstroScriptAttributes = import('./dist/@types/astro').AstroScriptAttributes &
AstroDefineVarsAttribute;
type AstroStyleAttributes = import('./dist/types/@types/astro').AstroStyleAttributes &
type AstroStyleAttributes = import('./dist/@types/astro').AstroStyleAttributes &
AstroDefineVarsAttribute;

// This is an unfortunate use of `any`, but unfortunately we can't make a type that works for every framework
Expand Down
6 changes: 3 additions & 3 deletions packages/astro/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference path="./client.d.ts" />

type Astro = import('./dist/types/@types/astro').AstroGlobal;
type Astro = import('./dist/@types/astro').AstroGlobal;

// We duplicate the description here because editors won't show the JSDoc comment from the imported type (but will for its properties, ex: Astro.request will show the AstroGlobal.request description)
/**
Expand All @@ -13,7 +13,7 @@ declare const Astro: Readonly<Astro>;
declare const Fragment: any;

declare module '*.md' {
type MD = import('./dist/types/@types/astro').MarkdownInstance<Record<string, any>>;
type MD = import('./dist/@types/astro').MarkdownInstance<Record<string, any>>;

export const frontmatter: MD['frontmatter'];
export const file: MD['file'];
Expand All @@ -30,7 +30,7 @@ declare module '*.md' {
}

declare module '*.mdx' {
type MDX = import('astro').MDXInstance<Record<string, any>>;
type MDX = import('./dist/@types/astro').MDXInstance<Record<string, any>>;

export const frontmatter: MDX['frontmatter'];
export const file: MDX['file'];
Expand Down

0 comments on commit 0714a8e

Please sign in to comment.