Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@types/lqip-modern
Advanced tools
Readme
npm install --save @types/lqip-modern
This package contains type definitions for lqip-modern (https://github.com/transitive-bullshit/lqip-modern/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lqip-modern.
// Type definitions for lqip-modern 1.1
// Project: https://github.com/transitive-bullshit/lqip-modern/
// Definitions by: Yaroslav Kiliba <https://github.com/Dattaya>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.2
/// <reference types="node" />
import sharp = require("sharp");
declare namespace lqip {
interface LqipResult {
content: Buffer;
metadata: {
originalWidth: number;
originalHeight: number;
width: number;
height: number;
type: OutputFormat;
dataURIBase64: string;
};
}
type OutputFormat = WebpOptions["outputFormat"] | JpegOptions["outputFormat"] | JpgOptions["outputFormat"];
type LqipOptions = WebpOptions | JpegOptions | JpgOptions | DefaultOptions;
interface DefaultOptions {
concurrency?: number | undefined;
resize?: number | ReadonlyArray<any> | undefined;
}
interface WebpOptions extends DefaultOptions {
readonly outputFormat?: "webp" | undefined;
readonly outputOptions?: sharp.WebpOptions | undefined;
}
interface JpegOptions extends DefaultOptions {
readonly outputFormat: "jpeg";
readonly outputOptions?: sharp.JpegOptions | undefined;
}
interface JpgOptions extends DefaultOptions {
readonly outputFormat: "jpg";
readonly outputOptions?: sharp.JpegOptions | undefined;
}
}
declare function lqip(input: string | Buffer, options?: lqip.LqipOptions): Promise<lqip.LqipResult>;
declare function lqip(
input: ReadonlyArray<string> | ReadonlyArray<Buffer>,
options?: lqip.LqipOptions,
): Promise<lqip.LqipResult[]>;
export = lqip;
These definitions were written by Yaroslav Kiliba.
FAQs
TypeScript definitions for lqip-modern
The npm package @types/lqip-modern receives a total of 311 weekly downloads. As such, @types/lqip-modern popularity was classified as not popular.
We found that @types/lqip-modern demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.