Socket
Socket
Sign inDemoInstall

@types/sharp

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/sharp - npm Package Compare versions

Comparing version 0.28.5 to 0.28.6

138

sharp/index.d.ts

@@ -14,3 +14,3 @@ // Type definitions for sharp 0.28

import { Duplex } from "stream";
import { Duplex } from 'stream';

@@ -27,3 +27,17 @@ //#region Constructor functions

declare function sharp(options?: sharp.SharpOptions): sharp.Sharp;
declare function sharp(input?: string | Buffer, options?: sharp.SharpOptions): sharp.Sharp;
declare function sharp(
input?:
| Buffer
| Uint8Array
| Uint8ClampedArray
| Int8Array
| Uint16Array
| Int16Array
| Uint32Array
| Int32Array
| Float32Array
| Float64Array
| string,
options?: sharp.SharpOptions,
): sharp.Sharp;

@@ -427,3 +441,7 @@ declare namespace sharp {

*/
modulate(options?: { brightness?: number | undefined; saturation?: number | undefined; hue?: number | undefined }): Sharp;
modulate(options?: {
brightness?: number | undefined;
saturation?: number | undefined;
hue?: number | undefined;
}): Sharp;

@@ -891,3 +909,3 @@ //#endregion

/** compression format: av1, hevc (optional, default 'av1') */
compression?: "av1" | "hevc" | undefined;
compression?: 'av1' | 'hevc' | undefined;
/** use lossless compression (optional, default false) */

@@ -905,10 +923,10 @@ lossless?: boolean | undefined;

interface GifOptions extends OutputOptions, AnimationOptions {
/** Page height for animated output */
pageHeight?: number;
/** Number of animation iterations, use 0 for infinite animation (optional, default 0) */
loop?: number;
/** List of delays between animation frames (in milliseconds) */
delay?: number[];
/** Force GIF output, otherwise attempt to use input format (optional, default true) */
force?: boolean;
/** Page height for animated output */
pageHeight?: number;
/** Number of animation iterations, use 0 for infinite animation (optional, default 0) */
loop?: number;
/** List of delays between animation frames (in milliseconds) */
delay?: number[];
/** Force GIF output, otherwise attempt to use input format (optional, default true) */
force?: boolean;
}

@@ -1037,8 +1055,8 @@

interface ClaheOptions {
/** width of the region */
width: number;
/** height of the region */
height: number;
/** max slope of the cumulative contrast. (optional, default 3) */
maxSlope?: number | undefined;
/** width of the region */
width: number;
/** height of the region */
height: number;
/** max slope of the cumulative contrast. (optional, default 3) */
maxSlope?: number | undefined;
}

@@ -1133,21 +1151,21 @@

interface FitEnum {
contain: "contain";
cover: "cover";
fill: "fill";
inside: "inside";
outside: "outside";
contain: 'contain';
cover: 'cover';
fill: 'fill';
inside: 'inside';
outside: 'outside';
}
interface KernelEnum {
nearest: "nearest";
cubic: "cubic";
mitchell: "mitchell";
lanczos2: "lanczos2";
lanczos3: "lanczos3";
nearest: 'nearest';
cubic: 'cubic';
mitchell: 'mitchell';
lanczos2: 'lanczos2';
lanczos3: 'lanczos3';
}
interface BoolEnum {
and: "and";
or: "or";
eor: "eor";
and: 'and';
or: 'or';
eor: 'eor';
}

@@ -1157,3 +1175,3 @@

multiband: string;
"b-w": string;
'b-w': string;
bw: string;

@@ -1164,32 +1182,32 @@ cmyk: string;

type TileLayout = "dz" | "iiif" | "zoomify" | "google";
type TileLayout = 'dz' | 'iiif' | 'zoomify' | 'google';
type Blend =
| "clear"
| "source"
| "over"
| "in"
| "out"
| "atop"
| "dest"
| "dest-over"
| "dest-in"
| "dest-out"
| "dest-atop"
| "xor"
| "add"
| "saturate"
| "multiply"
| "screen"
| "overlay"
| "darken"
| "lighten"
| "colour-dodge"
| "colour-dodge"
| "colour-burn"
| "colour-burn"
| "hard-light"
| "soft-light"
| "difference"
| "exclusion";
| 'clear'
| 'source'
| 'over'
| 'in'
| 'out'
| 'atop'
| 'dest'
| 'dest-over'
| 'dest-in'
| 'dest-out'
| 'dest-atop'
| 'xor'
| 'add'
| 'saturate'
| 'multiply'
| 'screen'
| 'overlay'
| 'darken'
| 'lighten'
| 'colour-dodge'
| 'colour-dodge'
| 'colour-burn'
| 'colour-burn'
| 'hard-light'
| 'soft-light'
| 'difference'
| 'exclusion';

@@ -1196,0 +1214,0 @@ type Gravity = number | string;

{
"name": "@types/sharp",
"version": "0.28.5",
"version": "0.28.6",
"description": "TypeScript definitions for sharp",

@@ -50,4 +50,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sharp",

},
"typesPublisherContentHash": "d1891e9ba387c061dd34f1eb7f5fdaef935b7bed4c191f8a7f94da1c2b7c4836",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "a315c36a18cf02b96e85a6a1830e4674cbda31c25b4538b02c718c71e5902c78",
"typeScriptVersion": "3.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 27 Jul 2021 20:31:23 GMT
* Last updated: Wed, 01 Sep 2021 09:31:20 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc