mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Fix remaining lint errors (#19166)
This commit is contained in:
Vendored
+6
-6
@@ -16,8 +16,8 @@ import { Duplex } from "stream";
|
||||
*/
|
||||
declare function sharp(input?: string | Buffer, options?: sharp.SharpOptions): sharp.SharpInstance;
|
||||
declare namespace sharp {
|
||||
const gravity: sharp.GravityEnum;
|
||||
const strategy: sharp.StrategyEnum;
|
||||
const gravity: GravityEnum;
|
||||
const strategy: StrategyEnum;
|
||||
/**
|
||||
* Gets, or when options are provided sets, the limits of libvips' operation cache.
|
||||
* Existing entries in the cache will be trimmed after any change in limits.
|
||||
@@ -25,7 +25,7 @@ declare namespace sharp {
|
||||
* @param {boolean|sharp.CacheOptions} options Object with the cache options, or Boolean where true uses default cache settings and false removes all caching.
|
||||
* @returns {Object}
|
||||
*/
|
||||
function cache(options?: boolean | sharp.CacheOptions): CacheResult;
|
||||
function cache(options?: boolean | CacheOptions): CacheResult;
|
||||
/**
|
||||
* Gets, or when a concurrency is provided sets, the number of threads libvips' should create to process each image.
|
||||
* @param {number} concurrency concurrency value
|
||||
@@ -35,15 +35,15 @@ declare namespace sharp {
|
||||
* Provides access to internal task counters.
|
||||
* @returns {sharp.SharpCounters} Object containing task counters
|
||||
*/
|
||||
function counters(): sharp.SharpCounters;
|
||||
function counters(): SharpCounters;
|
||||
/**
|
||||
* Get and set use of SIMD vector unit instructions.
|
||||
* @param {boolean} enable enable or disable use of SIMD vector unit instructions
|
||||
* @returns {boolean} true if usage of SIMD vector unit instructions is enabled
|
||||
*/
|
||||
function simd(enable?: boolean): boolean;
|
||||
const kernel: sharp.KernelEnum;
|
||||
const interpolator: sharp.InterpolatorEnum;
|
||||
const kernel: KernelEnum;
|
||||
const interpolator: InterpolatorEnum;
|
||||
/**
|
||||
* Object containing nested boolean values representing the available input and output formats/methods.
|
||||
*/
|
||||
|
||||
@@ -58,7 +58,7 @@ console.log(sharp.format);
|
||||
console.log(sharp.versions);
|
||||
|
||||
sharp.queue.on('change', (queueLength: number) => {
|
||||
console.log('Queue contains ' + queueLength + ' task(s)');
|
||||
console.log(`Queue contains ${queueLength} task(s)`);
|
||||
});
|
||||
|
||||
let pipeline: sharp.SharpInstance = sharp().rotate();
|
||||
|
||||
Reference in New Issue
Block a user