<commit_before>// @flow

export type Navigation = {
  navigate: (screen: string, parameters?: Object) => void,
  state: {
    params: Object,
  },
};<commit_msg>Improve Flow type of the navigation<commit_after>// @flow

type NavigationStateParameters = Object;

/**
 * @see https://reactnavigation.org/docs/navigators/navigation-prop
 */
export type Navigation = {
  navigate: (routeName: string, parameters?: NavigationStateParameters) => void,
  state: {
    params: NavigationStateParameters,
  },
  setParams: (newParameters: NavigationStateParameters) => void,
  goBack: () => void,
};
{'fraction_non_alphanumeric': 0.13898305084745763, 'fraction_numerical': 0.0, 'mean_word_length': 4.6826923076923075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '4649333', 'n_tokens_mistral': 177, 'n_tokens_neox': 171, 'n_words': 44}