From 3313ab32141dd6a7ccec46f2306087d712140a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=A2?= Date: Fri, 1 Dec 2023 11:31:30 +0800 Subject: [PATCH] fix: refactor resulting in miss TS type (#543) * chore: update eslint fix compile error * fix: fix export TS description ref: https://github.com/react-component/pagination/pull/539#issuecomment-1831164936 --- .eslintrc.js | 5 +---- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 69084263..53bb6cbc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,9 +1,6 @@ -const base = require('@umijs/fabric/dist/eslint'); - module.exports = { - ...base, + extends: [require.resolve('@umijs/fabric/dist/eslint')], rules: { - ...base.rules, 'no-template-curly-in-string': 0, 'prefer-promise-reject-errors': 0, 'react/no-array-index-key': 0, diff --git a/src/index.ts b/src/index.ts index 47bf73a1..6aa2b927 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ export { default } from './Pagination'; -export type { PaginationProps } from './interface'; +export type * from './interface';