@types/11ty__eleventy-img
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -1,2 +0,2 @@ | ||
import { Metadata } from '.'; | ||
import { Metadata } from "."; | ||
@@ -56,3 +56,3 @@ declare namespace generateHTML { | ||
*/ | ||
whitespaceMode?: 'inline' | 'block'; | ||
whitespaceMode?: "inline" | "block"; | ||
} | ||
@@ -59,0 +59,0 @@ } |
@@ -8,4 +8,4 @@ // Type definitions for @11ty/eleventy-img 2.0 | ||
/// <reference types="node" /> | ||
import sharp = require('sharp'); | ||
import generateImageHTML = require('./generate-html'); | ||
import sharp = require("sharp"); | ||
import generateImageHTML = require("./generate-html"); | ||
@@ -17,4 +17,4 @@ type Awaitable<T> = PromiseLike<T> | T; | ||
type ImageSource = string | URL | Buffer; | ||
type ImageFormat = 'webp' | 'jpeg' | 'png' | 'svg' | 'avif'; | ||
type ImageFormatWithAliases = ImageFormat | 'jpg' | 'svg+xml'; | ||
type ImageFormat = "webp" | "jpeg" | "png" | "svg" | "avif"; | ||
type ImageFormatWithAliases = ImageFormat | "jpg" | "svg+xml"; | ||
@@ -30,3 +30,3 @@ type FormatHook = ( | ||
*/ | ||
type?: 'buffer' | 'json' | 'text'; | ||
type?: "buffer" | "json" | "text"; | ||
/** | ||
@@ -62,3 +62,3 @@ * @default ".cache" | ||
*/ | ||
widths?: ReadonlyArray<number | 'auto' | null>; | ||
widths?: ReadonlyArray<number | "auto" | null>; | ||
/** | ||
@@ -70,3 +70,3 @@ * Controls the output image formats. | ||
*/ | ||
formats?: ReadonlyArray<ImageFormatWithAliases | 'auto' | null>; | ||
formats?: ReadonlyArray<ImageFormatWithAliases | "auto" | null>; | ||
/** | ||
@@ -160,8 +160,8 @@ * @default 10 | ||
| (( | ||
id: string, | ||
src: string, | ||
width: number, | ||
format: string, | ||
options: Required<ImageOptions>, | ||
) => string | null | undefined) | ||
id: string, | ||
src: string, | ||
width: number, | ||
format: string, | ||
options: Required<ImageOptions>, | ||
) => string | null | undefined) | ||
| null | ||
@@ -188,10 +188,10 @@ | undefined; | ||
| (( | ||
format: { | ||
hash: string; | ||
src: string; | ||
width: number; | ||
format: string; | ||
}, | ||
options: Required<ImageOptions>, | ||
) => string) | ||
format: { | ||
hash: string; | ||
src: string; | ||
width: number; | ||
format: string; | ||
}, | ||
options: Required<ImageOptions>, | ||
) => string) | ||
| null; | ||
@@ -300,3 +300,3 @@ | ||
function getFormats( | ||
formats: string | ReadonlyArray<ImageFormatWithAliases | null | 'auto'>, | ||
formats: string | ReadonlyArray<ImageFormatWithAliases | null | "auto">, | ||
autoFormat: ImageFormat, | ||
@@ -311,3 +311,3 @@ ): ImageFormat[]; | ||
originalWidth: number, | ||
widths?: ReadonlyArray<number | 'auto' | null>, | ||
widths?: ReadonlyArray<number | "auto" | null>, | ||
allowUpscale?: boolean, | ||
@@ -323,3 +323,3 @@ ): number[]; | ||
cacheOptions?: Required<ImageOptions['cacheOptions']>; | ||
cacheOptions?: Required<ImageOptions["cacheOptions"]>; | ||
@@ -326,0 +326,0 @@ constructor(src: ImageSource, opts?: ImageOptions); |
{ | ||
"name": "@types/11ty__eleventy-img", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "TypeScript definitions for @11ty/eleventy-img", | ||
@@ -26,4 +26,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/11ty__eleventy-img", | ||
}, | ||
"typesPublisherContentHash": "7076d61e0cc63e44330d0961c26377fa546bd2dbbdda3eb7b761566ae2484f59", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "40fafb587fd89ba7b03fcd6f0dbf9605e35c876c6a2e62237ca120e6de70563d", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 26 Apr 2023 21:32:48 GMT | ||
* Last updated: Wed, 27 Sep 2023 20:35:06 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/sharp](https://npmjs.com/package/@types/sharp) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17918