3.0.7 • Published 6 months ago

@types/react-radio-group v3.0.7

Weekly downloads
1,210
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-radio-group

Summary

This package contains type definitions for react-radio-group (https://github.com/chenglou/react-radio-group).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-radio-group.

index.d.ts

// Type definitions for react-radio-group 3.0
// Project: https://github.com/chenglou/react-radio-group
// Definitions by: Jason Unger <https://github.com/jsonunger>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

// Omit taken from https://github.com/Microsoft/TypeScript/issues/12215#issuecomment-311923766
export type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;

export namespace Radio {
    type RadioProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'name' | 'role' | 'type' | 'aria-checked'> & {
        value: any;
    };
}
export const Radio: React.ComponentClass<Radio.RadioProps>;

export namespace RadioGroup {
    type RadioGroupProps = Omit<React.HTMLProps<any>, 'onChange'> & {
        selectedValue?: any;
        onChange?: ((value: any) => void) | undefined;
        Component?: React.ElementType<Omit<React.HTMLProps<any>, 'onChange' | 'role'>> | undefined;
    };
}
export const RadioGroup: React.ComponentClass<RadioGroup.RadioGroupProps>;

Additional Details

  • Last updated: Thu, 21 Oct 2021 23:01:41 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Jason Unger.

3.0.7

6 months ago

3.0.6

7 months ago

3.0.5

7 months ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago