marking Astro.resolve() as deprecated (#2856)

This commit is contained in:
Tony Sullivan 2022-03-22 18:15:36 +00:00 committed by GitHub
parent 930dc75c13
commit 5869e015d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,9 @@ export interface AstroGlobal extends AstroGlobalPartial {
export interface AstroGlobalPartial {
fetchContent<T = any>(globStr: string): Promise<FetchContentResult<T>[]>;
/**
* @deprecated since version 0.24. See the {@link https://astro.build/deprecated/resolve upgrade guide} for more details.
*/
resolve: (path: string) => string;
site: URL;
}