UNPKG

@fremtind/jkl-feedback-react

Version:
5 lines (4 loc) 425 B
import React, { JSXElementConstructor, FC } from "react"; import { QuestionProps, QuestionType } from "./types"; export declare function getChildrenOfType<P>(...allowedTypes: Array<string | JSXElementConstructor<P>>): (children: React.ReactNode) => React.ReactElement<P, string | React.JSXElementConstructor<unknown>>[] | null | undefined; export declare const getQuestionFromType: (type: QuestionType) => FC<QuestionProps>;