UNPKG

hobby-enquete-component

Version:

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

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