Skip to content

Commit

Permalink
♻️ change function return from void to unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
andresribeiro committed Dec 30, 2022
1 parent 0c5613e commit 53ef8ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function App() {
| `hyperlinkStyle` | `undefined` | `StyleProp<TextStyle>` | `false`
| `autoDetectMentions` | `true` | `boolean` | `false`
| `autoDetectHastags` | `true` | `boolean` | `false`
| `onLinkPress` | `undefined` | `(link: string) => void` | `false`
| `onMentionPress` | `undefined` | `(username: string) => void` | `false`
| `onHashtagPress` | `undefined` | `(tag: string) => void` | `false`
| `onLinkPress` | `undefined` | `(link: string) => unknown` | `false`
| `onMentionPress` | `undefined` | `(username: string) => unknown` | `false`
| `onHashtagPress` | `undefined` | `(tag: string) => unknown` | `false`
| `linkify` | `linkifyIt()` | `linkifyIt.LinkifyIt` | `false`
6 changes: 3 additions & 3 deletions lib/Hyperlinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export type HyperlinksProps = TextProps & {
autoDetectMentions?: boolean;
autoDetectHastags?: boolean;
linkify?: linkifyIt.LinkifyIt;
onLinkPress?: (link: string) => void;
onMentionPress?: (username: string) => void;
onHashtagPress?: (tag: string) => void;
onLinkPress?: (link: string) => unknown;
onMentionPress?: (username: string) => unknown;
onHashtagPress?: (tag: string) => unknown;
};

type Mention = {
Expand Down

0 comments on commit 53ef8ff

Please sign in to comment.