Browse Source

chore(all): delete useless Omit define (#4470)

pull/4479/head
Zuobin Wang 3 years ago committed by GitHub
parent
commit
4fed700e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/_util/type.ts
  2. 2
      components/breadcrumb/Breadcrumb.tsx

1
components/_util/type.ts

@ -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;

2
components/breadcrumb/Breadcrumb.tsx

@ -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 {

Loading…
Cancel
Save