Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@types/lqip-modern

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

@types/lqip-modern

TypeScript definitions for lqip-modern

    1.1.2ts3.6ts3.7ts3.8ts3.9ts4.0ts4.1ts4.2ts4.3ts4.4ts4.5ts4.6ts4.7ts4.8latest

Version published
Maintainers
1
Yearly downloads
4,890
increased by517.42%

Weekly downloads

Readme

Source

Installation

npm install --save @types/lqip-modern

Summary

This package contains type definitions for lqip-modern (https://github.com/transitive-bullshit/lqip-modern/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lqip-modern.

index.d.ts

// 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;

Additional Details

  • Last updated: Thu, 08 Jul 2021 16:23:51 GMT
  • Dependencies: @types/sharp, @types/node
  • Global values: none

Credits

These definitions were written by Yaroslav Kiliba.

FAQs

What is @types&#x2F;lqip-modern?

TypeScript definitions for lqip-modern

Is @types&#x2F;lqip-modern popular?

The npm package @types&#x2F;lqip-modern receives a total of 155 weekly downloads. As such, @types&#x2F;lqip-modern popularity was classified as not popular.

Is @types&#x2F;lqip-modern well maintained?

We found that @types&#x2F;lqip-modern demonstrated a healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 08 Jul 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc