mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
* Add limitInputPixels option for sharp image service * Fix types * Update docs Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
35 lines
1.4 KiB
TypeScript
35 lines
1.4 KiB
TypeScript
type ViteUserConfig = import('vite').UserConfig;
|
|
type ViteUserConfigFn = import('vite').UserConfigFn;
|
|
type AstroUserConfig = import('./dist/@types/astro.js').AstroUserConfig;
|
|
type ImageServiceConfig = import('./dist/@types/astro.js').ImageServiceConfig;
|
|
type SharpImageServiceConfig = import('./dist/assets/services/sharp.js').SharpImageServiceConfig;
|
|
|
|
/**
|
|
* See the full Astro Configuration API Documentation
|
|
* https://astro.build/config
|
|
*/
|
|
export function defineConfig(config: AstroUserConfig): AstroUserConfig;
|
|
|
|
/**
|
|
* Use Astro to generate a fully resolved Vite config
|
|
*/
|
|
export function getViteConfig(config: ViteUserConfig): ViteUserConfigFn;
|
|
|
|
/**
|
|
* Return the configuration needed to use the Sharp-based image service
|
|
*/
|
|
export function sharpImageService(config?: SharpImageServiceConfig): ImageServiceConfig;
|
|
|
|
/**
|
|
* Return the configuration needed to use the Squoosh-based image service
|
|
* See: https://docs.astro.build/en/guides/images/#configure-squoosh
|
|
*/
|
|
export function squooshImageService(): ImageServiceConfig;
|
|
|
|
/**
|
|
* Return the configuration needed to use the passthrough image service. This image services does not perform
|
|
* any image transformations, and is mainly useful when your platform does not support other image services, or you are
|
|
* not using Astro's built-in image processing.
|
|
* See: https://docs.astro.build/en/guides/images/#configure-no-op-passthrough-service
|
|
*/
|
|
export function passthroughImageService(): ImageServiceConfig;
|