@enable-tech/shared-types
Version:
This package represents the single source of truth of the Types being used in the codebase (front-end and back-end) of enable.tech, It is an organization-scoped package. So, all the development teams belonging to it can participate to enhance it.
32 lines • 1.12 kB
TypeScript
import { UseFormGetValues, UseFormReset, UseFormWatch } from 'react-hook-form';
import { I_NotificationTemplate } from '../../backend/responses/schemas';
import { I_Company } from 'src/modules/company/backend/responses/schemas';
import { T_NotificationFormTypeBodyParams } from '../../backend/payloads';
export interface I_ModuleTriggerSelectProps {
triggers: I_NotificationTemplate['trigger'][];
moduleFieldName: string;
triggerFieldName: string;
errors: any;
registerFN: Function;
watch: UseFormWatch<any>;
selectedCompany?: I_Company | undefined;
reset: UseFormReset<any>;
getValues: UseFormGetValues<any>;
notificationDefaults: T_NotificationFormTypeBodyParams;
}
export type T_JsonInputProps = {
label?: string;
initialJson: Record<string, string>;
onChange: (json: Record<string, string>) => void;
getValues: UseFormGetValues<{
name: string;
owner: string;
trigger: string;
url: string;
method: string;
headers: {};
payload: {};
moduleId: string;
}>;
};
//# sourceMappingURL=index.d.ts.map