Skip to content

Commit

Permalink
chore: mark createPropsGetter as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
HelenaIsh committed Feb 22, 2022
1 parent 0bb6bde commit 55c5f82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/react-ui/lib/createPropsGetter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';

/**
* @deprecated
*/
export function createPropsGetter<DP extends {}>(defaultProps: DP) {
return function <P, T extends React.Component<P>>(this: T): DP & P {
return this.props as any;
};
}

0 comments on commit 55c5f82

Please sign in to comment.