Options
All
  • Public
  • Public/Protected
  • All
Menu

Module extensions

Index

Type aliases

Variables

Functions

Type aliases

SupportedExtension

SupportedExtension: "avif" | "webp" | "jpg" | "png" | "gif" | "svg"

Variables

Const extensions

extensions: { avif: RegExp; gif: RegExp; jpg: RegExp; png: RegExp; svg: RegExp; webp: RegExp } = ...

Type declaration

  • avif: RegExp
  • gif: RegExp
  • jpg: RegExp
  • png: RegExp
  • svg: RegExp
  • webp: RegExp

Functions

isSupportedType

  • isSupportedType(type: string): boolean
  • Check image type

    Parameters

    • type: string

      Image extension without dot.

    Returns boolean

    Image type is supported or not.

Generated using TypeDoc