UNPKG

hobby-enquete-component

Version:

You can display complex enquete if you make a json file written in my structure.

23 lines (22 loc) 669 B
import React from 'react'; export interface enqprops { q: Array<___question>; getRest: (num: number) => any; getAns: (value: string) => any; debug?: boolean; } export declare type ___question = { parent: Array<string>; title?: string; question: string; answers: Array<___answer>; }; export declare type ___answer = { ansid: string; anstext: string; ansvalue: string; }; export declare const is___questions: (arg: any) => arg is ___question[]; export declare const is___question: (arg: any) => arg is ___question; export declare const is___answer: (arg: any) => arg is ___answer; export declare const Enq: React.FC<enqprops>;