Skip to content

Commit 27b3684

Browse files
Update dependency typescript to v4.9.3 (#2031)
* Update dependency typescript to v4.9.3 * Fix for Typescript binding parameter error Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tyler Sticka <[email protected]>
1 parent 2f824ba commit 27b3684

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"tiny-glob": "0.2.9",
114114
"twing": "3.1.1",
115115
"twing-loader": "3.0.1",
116-
"typescript": "4.7.4",
116+
"typescript": "4.9.3",
117117
"val-loader": "2.1.2",
118118
"webpack": "4.46.0"
119119
},

src/components/pagination/demo/mock-pagination-data.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ function mockPageData(page = 1, current = 1) {
3636
* @see https://timber.github.io/docs/guides/pagination/
3737
*/
3838

39-
export default function mockPaginationData({
40-
current = 1,
41-
midSize = 2,
42-
total = 36,
43-
} = {}) {
39+
export default function mockPaginationData(param = {}) {
40+
const args = { current: 1, midSize: 2, total: 36, ...param };
41+
const { current, midSize, total } = args;
4442
// If this isn't the first page, mock the previous page data
4543
const prev = current > 1 && mockPageData(current - 1, current);
4644
// If this isn't the last page, mock the next page data

0 commit comments

Comments
 (0)