@prismatic-io/spectral
Version:
Utility library for building Prismatic connectors and code-native integrations
32 lines (31 loc) • 884 B
TypeScript
import type { Input as InputBase } from "../../serverTypes";
import type { InputFieldDefinition } from "../../types/Inputs";
export type ServerTypeInput = InputBase & {
onPremControlled?: boolean;
shown?: boolean;
};
type ValueType = string | {
type: string;
import: string;
module: string;
};
export interface Input {
key: string;
label: string;
inputType: string;
valueType: ValueType;
docBlock: string;
required: boolean | undefined;
default: ServerTypeInput["default"];
}
interface GetInputsProps {
inputs: ServerTypeInput[];
docBlock?: (input: ServerTypeInput) => string;
}
export declare const getInputs: ({ inputs, docBlock }: GetInputsProps) => Input[];
type InputType = string | {
type: string;
module: string;
};
export declare const INPUT_TYPE_MAP: Record<InputFieldDefinition["type"], InputType>;
export {};