Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dozortsev authored and KnisterPeter committed Apr 7, 2021
1 parent 46edf00 commit 0c5314c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/es6-class.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare module 'component' {
export interface ComponentOptionalObjectWithShape {
color?: string;
fontSize?: number;
"aria-label"?: string;
}

export type ComponentRequiredUnion = ((...args: any[])=>any) | boolean;
Expand Down
3 changes: 2 additions & 1 deletion tests/es6-class.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ Component.propTypes = {
//optionalObjectOf: React.PropTypes.objectOf(React.PropTypes.number),
optionalObjectWithShape: React.PropTypes.shape({
color: React.PropTypes.string,
fontSize: React.PropTypes.number
fontSize: React.PropTypes.number,
'aria-label': React.PropTypes.string,
}),
requiredFunc: React.PropTypes.func.isRequired,
requiredAny: React.PropTypes.any.isRequired,
Expand Down

0 comments on commit 0c5314c

Please sign in to comment.