-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(module-type-aliases): remove fallback aliases (#5726)
- Loading branch information
Showing
10 changed files
with
97 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
src | ||
copyUntypedFiles.js | ||
copyUntypedFiles.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
packages/docusaurus-plugin-ideal-image/src/plugin-ideal-image.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
declare module '@docusaurus/plugin-ideal-image' { | ||
export type PluginOptions = { | ||
/** | ||
* Filename template for output files. | ||
*/ | ||
name?: string; | ||
/** | ||
* Specify all widths you want to use; if a specified size exceeds the original image's width, the latter will be used (i.e. images won't be scaled up). You may also declare a default sizes array in the loader options in your webpack.config.js. | ||
*/ | ||
sizes?: number[]; | ||
/** | ||
* Specify one width you want to use; if the specified size exceeds the original image's width, the latter will be used (i.e. images won't be scaled up) | ||
*/ | ||
size?: number; | ||
/** | ||
* As an alternative to manually specifying sizes, you can specify min, max and steps, and the sizes will be generated for you. | ||
*/ | ||
min?: number; | ||
/** | ||
* See min above | ||
*/ | ||
max?: number; | ||
/** | ||
* Configure the number of images generated between min and max (inclusive) | ||
*/ | ||
steps?: number; | ||
/** | ||
* JPEG compression quality | ||
*/ | ||
quality?: number; | ||
}; | ||
} | ||
|
||
declare module '@theme/IdealImage' { | ||
import type {ComponentProps} from 'react'; | ||
|
||
export interface Props extends ComponentProps<'img'> { | ||
img: any; | ||
} | ||
export default function IdealImage(props: Props): JSX.Element; | ||
} | ||
|
||
declare module '@endiliey/react-ideal-image'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="@docusaurus/plugin-ideal-image" /> |