<commit_before>import { shallow } from 'enzyme';

export interface ShallowOptions {
  shallow: typeof shallow;
  otherContext: Object;
  dive: boolean;
  untilSelector: boolean;
}

export default function createShallow(
  options?: Partial<ShallowOptions>
): typeof shallow;<commit_msg>[typescript] Improve `createShallow` typings. (#8415)<commit_after>import { shallow, EnzymeSelector } from 'enzyme';

export interface ShallowOptions {
  shallow: typeof shallow;
  otherContext: Object;
  dive: boolean;
  untilSelector: EnzymeSelector;
}

export default function createShallow(
  options?: Partial<ShallowOptions>
): typeof shallow;
{'fraction_non_alphanumeric': 0.09606299212598425, 'fraction_numerical': 0.006299212598425197, 'mean_word_length': 6.310344827586207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2343682', 'n_tokens_mistral': 185, 'n_tokens_neox': 177, 'n_words': 52}