Closed lianghan-ihealth closed 6 years ago
thank you!please as soon as possible
@jackTheRipper: is it possible for you to take a look at it? =D
@markvincze: for the short-term gain, ca we suggest applying any TypeScript trick so that Region
component can be imported without having to modify the monorepo's typings?
@lianghan-ihealth: until we have our next release with updated typings, may be you can try this locally:
declare module 'frint-react' {
interface RegionProps {
name: string;
uniqueKey?: string;
data?: any;
}
class Region extends React.Component<RegionProps, any> {
}
}
Following what's written in this blog post: https://templecoding.com/blog/2016/03/31/creating-typescript-typings-for-existing-react-components/
thank you all! frintjs is great.
Region component not in the d.ts. I can not use it