From f8a6148e9ddadce0142d334916f7a9d460b4a1fd Mon Sep 17 00:00:00 2001 From: referee1005 Date: Tue, 28 Nov 2023 19:11:58 +0100 Subject: [PATCH] Remove restriction of typesVersion to 4.7 (#2078) Newer versions of TypeScript would not pick up the types when importing from `photoswipe/lightbox` as the types were restricted to version 4.7 or lower. The types works perfectly fine with newer versions of TS, so by simply removing the restriction everything works as expected. fixes dimsemenov/PhotoSwipe#2029 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 76802a6..74bbd72 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "./style.css": "./dist/photoswipe.css" }, "typesVersions": { - "<4.7": { + "*": { "lightbox": [ "dist/types/lightbox/lightbox.d.ts" ]