mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Update prop-types-tests.ts
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import * as PropTypes from "prop-types";
|
||||
import * as React from "react";
|
||||
|
||||
interface Props {
|
||||
any: any;
|
||||
@@ -13,7 +12,7 @@ interface Props {
|
||||
element: any;
|
||||
}
|
||||
|
||||
let propTypes: React.ValidationMap<Props> = {
|
||||
let propTypes: PropTypes.ValidationMap<Props> = {
|
||||
any: PropTypes.any.isRequired,
|
||||
array: PropTypes.array.isRequired,
|
||||
bool: PropTypes.bool.isRequired,
|
||||
|
||||
Reference in New Issue
Block a user