Add array-type
TypeScript ESLint rule
This commit is contained in:
parent
7efa4f1a8a
commit
da27a6ac64
6 changed files with 15 additions and 7 deletions
|
@ -66,7 +66,7 @@ export class Linkify extends React.Component<Props> {
|
|||
|
||||
const chunkData: Array<{
|
||||
chunk: string;
|
||||
matchData: LinkifyIt.Match[];
|
||||
matchData: ReadonlyArray<LinkifyIt.Match>;
|
||||
}> = splitByEmoji(text).map(({ type, value: chunk }) => {
|
||||
if (type === 'text') {
|
||||
return { chunk, matchData: linkify.match(chunk) || [] };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue