TypeScript definitions of imgix's URL parameters.
npm install --save-dev typescript-imgix-url-params
This package was created on 15 Nov 2022, it is new but please give it a try and give your feedback.
import type { ImgixUrl } from 'typescript-imgix-url-params';
const params: ImgixUrl.Params = {
w: 100,
h: 100,
fm: 'pjpg',
};
To update this package we regenerate the schema based on the latest contents from https://github.com/imgix/imgix-url-params:
- Bump
imgix-url-params
in package.json. yarn install
yarn build
npm publish .