Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts compiler found three problems in d.ts #1658

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/collections/Form/FormCheckbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import * as React from 'react';
import { CheckboxProps } from '../../modules/Checkbox';
import { FormFieldProps } from './FormField';

export interface FormCheckboxProps extends FormFieldProps, CheckboxProps {
type BaseFormCheckboxProps = CheckboxProps & FormFieldProps
export interface FormCheckboxProps extends BaseFormCheckboxProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
3 changes: 2 additions & 1 deletion src/collections/Form/FormRadio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import * as React from 'react';

import { RadioProps } from '../../addons/Radio';
import { FormFieldProps } from './FormField';
type BaseRadioProps = RadioProps & FormFieldProps;

export interface FormRadioProps extends FormFieldProps, RadioProps {
export interface FormRadioProps extends BaseRadioProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/views/Statistic/StatisticGroup.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import { SemanticCOLORS, SemanticWIDTHS } from '../..';
import { StatisticSizeProp } from './Statictic';
import { StatisticSizeProp } from './Statistic';

export interface StatisticGroupProps {
[key: string]: any;
Expand Down