Skip to content

Commit 02b0556

Browse files
committed
fix: tsc warnings
1 parent 7502365 commit 02b0556

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

src/Header/HeaderRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import Cell from '../Cell';
3-
import {
3+
import type {
44
CellType,
55
StickyOffsets,
66
ColumnType,

src/hooks/useStickyOffsets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useMemo } from 'react';
2-
import { StickyOffsets } from '../interface';
2+
import type { StickyOffsets } from '../interface';
33

44
/**
55
* Get sticky column offset width

src/sugar/Column.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ColumnType } from '../interface';
1+
import type { ColumnType } from '../interface';
22

33
export interface ColumnProps<RecordType> extends ColumnType<RecordType> {
44
children?: null;

src/sugar/ColumnGroup.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as React from 'react';
2-
import { ColumnProps } from './Column';
3-
import { ColumnType } from '../interface';
1+
import type * as React from 'react';
2+
import type { ColumnProps } from './Column';
3+
import type { ColumnType } from '../interface';
44

55
export interface ColumnGroupProps<RecordType> extends Omit<ColumnType<RecordType>, 'children'> {
66
children:

src/utils/expandUtil.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import classNames from 'classnames';
3-
import { RenderExpandIconProps, Key, GetRowKey } from '../interface';
3+
import type { RenderExpandIconProps, Key, GetRowKey } from '../interface';
44

55
export function renderExpandIcon<RecordType>({
66
prefixCls,

src/utils/fixUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StickyOffsets, FixedType } from '../interface';
1+
import type { StickyOffsets, FixedType } from '../interface';
22

33
export interface FixedInfo {
44
fixLeft: number | false;

src/utils/valueUtil.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Key, DataIndex } from '../interface';
1+
import type { Key, DataIndex } from '../interface';
22

33
const INTERNAL_KEY_PREFIX = 'RC_TABLE_KEY';
44

@@ -15,7 +15,7 @@ export function getPathValue<ValueType, ObjectType extends object>(
1515
): ValueType {
1616
// Skip if path is empty
1717
if (!path && typeof path !== 'number') {
18-
return (record as unknown) as ValueType;
18+
return record as unknown as ValueType;
1919
}
2020

2121
const pathList = toArray(path);

0 commit comments

Comments
 (0)