Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Props = {
- border?: number;
- color?: string,
- }
- const getBorderStyle = createStyleUtilForProp<Props>('border', (border) => ({
- borderWidth: border,
- borderColor: '#000000',
- }));
- const getBorderStyle = createStyleUtilForProp<Props, 'border'>('border', ...);
Add Comment
Please, Sign In to add comment