Skip to content

Commit

Permalink
fix(typings): correct propType definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Heymdall committed Feb 12, 2019
1 parent 3998d77 commit d71b13c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typings/__tests__/__snapshots__/index.tests.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export type AProps = DeepReadonlyObject<{
}>;
export type APropTypes = Record<keyof AProps, Type.Validator<any>>;
export type APropTypes = Type.ValidationMap<AProps>;
/**
Expand Down
2 changes: 1 addition & 1 deletion typings/stringify-component-definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function stringifyComponentDefinition(info) {
${propsDef}
export type ${propTypesTypeName} = Record<keyof ${propsInterfaceName}, Type.Validator<any>>;
export type ${propTypesTypeName} = Type.ValidationMap<${propsInterfaceName}>;
${stringifyDescription(info.description, info.docblock)}
export default class ${info.displayName} extends React.Component<${propsInterfaceName}> {
Expand Down

0 comments on commit d71b13c

Please sign in to comment.