Skip to content

Commit 3aed37f

Browse files
Readme name and type file generation
1 parent d0f3da1 commit 3aed37f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ An example for data array is shown below:
5252
```jsx
5353
const dataArray = [
5454
{
55-
name: 'User 1',
55+
name: 'Jon Dew',
5656
avatarUrl: 'example.svg'
5757
},
5858
{
59-
name: 'User 2'
59+
name: 'Jack'
6060
}
6161
];
6262

src/lib/inline-images/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export interface AvatarPropType {
33
name?: string,
44
elivateOnHover?: boolean,
55
nameOnHover?: boolean,
6-
onUserClick?: function,
6+
onUserClick?: () => void,
77
styles?: StyleProp,
88
id?: string
99
}

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = {
8585
new MergeIntoSingleFilePlugin({
8686
files: {
8787
'types/index.d.ts': [
88-
path.resolve(__dirname, 'src/sdk/types.ts')
88+
path.resolve(__dirname, 'src/lib/inline-images/types.d.ts')
8989
]
9090
}
9191
})

0 commit comments

Comments
 (0)