<commit_before>// Type definitions for react-native-highlight-words 1.0
// Project: https://github.com/clauderic/react-native-highlight-words
// Definitions by: <NAME> <https://github.com/stelmakhivan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as React from 'react';
import { TextProps } from 'react-native';

export interface HighlighterProps {
    autoEscape?: boolean;
    highlightStyle?: TextProps['style'];
    sanitize?: (text: string) => string;
    searchWords: string[];
    style?: TextProps['style'];
    textToHighlight: string;
}

export default class Highlighter extends React.Component<HighlighterProps> {}
<commit_msg>feat: extends HighlighterProps from TextProps (#51911)<commit_after>// Type definitions for react-native-highlight-words 1.0
// Project: https://github.com/clauderic/react-native-highlight-words
// Definitions by: <NAME> <https://github.com/stelmakhivan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as React from 'react';
import { TextProps } from 'react-native';

export interface HighlighterProps extends TextProps {
    autoEscape?: boolean;
    highlightStyle?: TextProps['style'];
    sanitize?: (text: string) => string;
    searchWords: string[];
    style?: TextProps['style'];
    textToHighlight: string;
}

export default class Highlighter extends React.Component<HighlighterProps> {}

{'fraction_non_alphanumeric': 0.13152251608291637, 'fraction_numerical': 0.006433166547533953, 'mean_word_length': 4.932203389830509, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7141543', 'n_tokens_mistral': 413, 'n_tokens_neox': 403, 'n_words': 99}