Skip to content

Commit

Permalink
chore(all): delete useless Omit define (#4470)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamerryao authored Aug 5, 2021
1 parent 524cc13 commit 4fed700
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion components/_util/type.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { App, PropType, VNodeChild, Plugin } from 'vue';

export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
export const tuple = <T extends string[]>(...args: T) => args;

Expand Down
2 changes: 1 addition & 1 deletion components/breadcrumb/Breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { flattenChildren, getPropsSlot } from '../_util/props-util';
import warning from '../_util/warning';
import BreadcrumbItem from './BreadcrumbItem';
import Menu from '../menu';
import type { Omit, VueNode } from '../_util/type';
import type { VueNode } from '../_util/type';
import useConfigInject from '../_util/hooks/useConfigInject';

export interface Route {
Expand Down

0 comments on commit 4fed700

Please sign in to comment.