Skip to content

Commit

Permalink
perf: ts type import
Browse files Browse the repository at this point in the history
  • Loading branch information
Layouwen committed Aug 27, 2024
1 parent 65be3c1 commit ca60b28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/demo/input-control.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint no-console:0 */
import React from 'react';
import InputNumber, { ValueType } from 'rc-input-number';
import type { ValueType} from 'rc-input-number'
import InputNumber from 'rc-input-number';
import '../../assets/index.less';

export default () => {
Expand Down
3 changes: 2 additions & 1 deletion tests/props.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import React from 'react';
import '@testing-library/jest-dom';
import { render, fireEvent } from '@testing-library/react';
import KeyCode from 'rc-util/lib/KeyCode';
import InputNumber, { ValueType } from '../src';
import type { ValueType } from '../src'
import InputNumber from '../src';

describe('InputNumber.Props', () => {

Expand Down

0 comments on commit ca60b28

Please sign in to comment.