Skip to content

Commit

Permalink
Bug Fix: Need to accept undefined for the string index type in `Com…
Browse files Browse the repository at this point in the history
…ponents` since extensions do not always exist.
  • Loading branch information
NaotoshiFujita committed Sep 21, 2022
1 parent a9fe597 commit 672d324
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/js/splide-renderer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/splide.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d

/*!
* Splide.js
* Version : 4.1.0
* Version : 4.1.2
* License : MIT
* Copyright: 2022 Naotoshi Fujita
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/js/splide.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/js/splide.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ interface SyncTarget {
* @since 3.0.0
*/
interface Components {
[key: string]: BaseComponent;
[key: string]: BaseComponent | undefined;
Media: MediaComponent;
Direction: DirectionComponent;
Elements: ElementsComponent;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splidejs/splide",
"version": "4.1.1",
"version": "4.1.2",
"description": "Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.",
"author": "Naotoshi Fujita",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/js/types/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { BaseComponent, TransitionComponent } from './general';
* @since 3.0.0
*/
export interface Components {
[ key: string ]: BaseComponent;
[ key: string ]: BaseComponent | undefined;
Media: Types.MediaComponent;
Direction: Types.DirectionComponent;
Elements: Types.ElementsComponent;
Expand Down

0 comments on commit 672d324

Please sign in to comment.