<commit_before>import { ReactNode } from 'react';
import { components, OptionTypeBase } from 'react-select';
import type { DocumentNode } from 'graphql';

import GraphQLAsyncSelect, { GraphQLAsyncSelectProps } from './GraphQLAsyncSelect';
import { DefaultUsersQueryData, DefaultUsersQueryDocument } from './selectDefaultQueries.generated';

type UserNameLabelProps = {
  data: {
    name?: string;
  };
  children: ReactNode;
  [x: string]: any;
};

function UserNameLabel({ children, ...otherProps }: UserNameLabelProps) {
  return (
    <components.MultiValueLabel {...otherProps}>{otherProps.data.name}</components.MultiValueLabel>
  );
}

type DQ = DefaultUsersQueryData;
type DO<QueryType extends DefaultUsersQueryData> = NonNullable<
  QueryType['users_paginated']
>['entries'][0];

export type UserSelectProps<
  DataType,
  OptionType extends OptionTypeBase,<commit_msg>Fix type signatures for updated prop types<commit_after>import { ReactNode } from 'react';
import { components, OptionTypeBase } from 'react-select';
import type { DocumentNode } from 'graphql';
import { MultiValueGenericProps } from 'react-select/src/components/MultiValue';

import GraphQLAsyncSelect, { GraphQLAsyncSelectProps } from './GraphQLAsyncSelect';
import { DefaultUsersQueryData, DefaultUsersQueryDocument } from './selectDefaultQueries.generated';

type UserNameLabelProps<OptionType> = MultiValueGenericProps<OptionType> & {
  data: {
    name?: string;
  };
  children: ReactNode;
  [x: string]: any;
};

function UserNameLabel<OptionType>({ children, ...otherProps }: UserNameLabelProps<OptionType>) {
  return (
    <components.MultiValueLabel {...otherProps}>{otherProps.data.name}</components.MultiValueLabel>
  );
}

type DQ = DefaultUsersQueryData;
type DO<QueryType extends DefaultUsersQueryData> = NonNullable<
  QueryType['users_paginated']
>['entries'][0];

export type UserSelectProps<
  DataType,
  OptionType extends OptionTypeBase,
{'fraction_non_alphanumeric': 0.1186178442496132, 'fraction_numerical': 0.0010314595152140279, 'mean_word_length': 6.054545454545455, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '5037786', 'n_tokens_mistral': 551, 'n_tokens_neox': 549, 'n_words': 128}