let make: React.component<props> = styled(ReactNative.Image.make) }
而这似乎并没有好的解决方案,理想中的实现应该是:
1 2 3 4 5 6 7 8 9 10 11 12 13
module Styled = (Component: { type params // or type params = 'a let make: React.component<props> }) => { type props = { ...Component.props, // This can't work as it is not defined as record className?: string } @module("nativewind") external styled: React.component<Component.props> => React.component<props> = "styled"
let make: React.component<props> = styled(Component.make) }