1 | import React, { Component } from 'react';
|
2 | import { KnobStoreKnob } from '../KnobStore';
|
3 | interface PropFormProps {
|
4 | knobs: KnobStoreKnob[];
|
5 | onFieldChange: (changedKnob: KnobStoreKnob) => void;
|
6 | onFieldClick: (knob: KnobStoreKnob) => void;
|
7 | }
|
8 | export default class PropForm extends Component<PropFormProps> {
|
9 | static displayName: string;
|
10 | static defaultProps: {
|
11 | knobs: KnobStoreKnob[];
|
12 | onFieldChange: () => void;
|
13 | onFieldClick: () => void;
|
14 | };
|
15 | static propTypes: {
|
16 | knobs: React.Validator<KnobStoreKnob[]>;
|
17 | onFieldChange: React.Validator<(changedKnob: KnobStoreKnob) => void>;
|
18 | onFieldClick: React.Validator<(knob: KnobStoreKnob) => void>;
|
19 | };
|
20 | makeChangeHandler(name: string, type: string): (value?: string) => void;
|
21 | render(): JSX.Element;
|
22 | }
|
23 | export {};
|