Skip to content

Commit 06ca2cf

Browse files
committed
feat: remove unnecessary Omit type
1 parent efb22d4 commit 06ca2cf

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

src/Bar/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
ChildProps,
66
Coordinate,
77
ExpandInteractiveArea,
8-
Omit,
98
} from '../types';
109
import { omit } from '../utils';
1110
import { withResizerContext } from '../context';

src/context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import { EMPTY } from 'rxjs';
33

4-
import { Omit, ChildProps, ResizerContext } from './types';
4+
import { ChildProps, ResizerContext } from './types';
55
import { noop } from './utils';
66

77
export const {

src/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { RefObject } from 'react';
22
import { Observable } from 'rxjs';
33

4-
export type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
5-
64
export interface Coordinate {
75
x: number;
86
y: number;

src/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Omit } from './types';
2-
31
export function isValidNumber(num?: number): num is number {
42
return typeof num === 'number' && num === num;
53
}

0 commit comments

Comments
 (0)