Skip to content

Commit

Permalink
feat: intergate typings
Browse files Browse the repository at this point in the history
  • Loading branch information
mumiao committed Dec 2, 2020
1 parent d81b6f6 commit a7be36f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/common/type.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as React from 'react';
import { classNames, prefixClaName } from 'mo/common/className';

import TextArea from './TextArea';
import { LiteralUnion } from 'mo/common/type';

type SizeType = 'normal' | 'large';
export interface InputProps {
Expand Down
2 changes: 2 additions & 0 deletions src/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ interface HTMLElementProps<T = any> {
style?: React.CSSProperties;
className?: string;
}

type LiteralUnion<T extends U, U> = T | (U & {});

0 comments on commit a7be36f

Please sign in to comment.