Skip to content

Commit

Permalink
Complete type definition
Browse files Browse the repository at this point in the history
Signed-off-by: Josh-Cena <[email protected]>
  • Loading branch information
Josh-Cena committed Oct 17, 2021
1 parent c95a2c1 commit a869d8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-ideal-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.0-beta.7",
"description": "Docusaurus Plugin to generate an almost ideal image (responsive, lazy-loading, and low quality placeholder).",
"main": "lib/index.js",
"types": "src/types.d.ts",
"types": "src/plugin-ideal-image.d.ts",
"scripts": {
"build": "tsc && node copyUntypedFiles.js",
"watch": "node copyUntypedFiles.js && tsc --watch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

declare module '@docusaurus/plugin-ideal-image' {
export interface PluginOptions {
export type PluginOptions = {
/**
* Filename template for output files.
*/
Expand Down Expand Up @@ -35,7 +35,7 @@ declare module '@docusaurus/plugin-ideal-image' {
* JPEG compression quality
*/
quality?: number;
}
};
}

declare module '@theme/IdealImage' {
Expand All @@ -46,3 +46,5 @@ declare module '@theme/IdealImage' {
}
export default function IdealImage(props: Props): JSX.Element;
}

declare module '@endiliey/react-ideal-image';

0 comments on commit a869d8c

Please sign in to comment.