Skip to content

Commit

Permalink
Fix TS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Jan 29, 2020
1 parent 8e52d99 commit f9780a1
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
*/
import { ReactNode, OptionHTMLAttributes } from 'react';

import { FieldConfig } from './shared_imports';
import { PARAMETERS_DEFINITION } from './constants';

export interface DataTypeDefinition {
label: string;
value: DataType;
Expand All @@ -22,7 +19,7 @@ export interface DataTypeDefinition {
export interface ParameterDefinition {
title?: string;
description?: JSX.Element | string;
fieldConfig: FieldConfig;
fieldConfig: any;
schema?: any;
props?: { [key: string]: ParameterDefinition };
documentation?: {
Expand Down Expand Up @@ -140,10 +137,10 @@ export type ParameterName =
| 'max_shingle_size';

export interface Parameter {
fieldConfig: FieldConfig;
fieldConfig: any;
paramName?: string;
docs?: string;
props?: { [key: string]: FieldConfig };
props?: { [key: string]: any };
}

export interface Fields {
Expand All @@ -159,7 +156,7 @@ interface FieldBasic {
}

type FieldParams = {
[K in ParameterName]: typeof PARAMETERS_DEFINITION[K]['fieldConfig']['defaultValue'] | unknown;
[K in ParameterName]: unknown;
};

export type Field = FieldBasic & Partial<FieldParams>;
Expand Down

0 comments on commit f9780a1

Please sign in to comment.