Types cleanup; type safe refactoring; Remove unused clickhouse service; ems: GET all lines; Roles types;

This commit is contained in:
cracklesparkle
2024-12-19 16:53:50 +09:00
parent 9054c576a1
commit 71055e7cd0
6 changed files with 16 additions and 111 deletions

View File

@ -1,22 +1,7 @@
import { Validate } from "react-hook-form";
export interface CreateFieldTypes {
string: 'string';
number: 'number';
date: 'date';
dateTime: 'dateTime';
boolean: 'boolean';
singleSelect: 'singleSelect';
actions: 'actions';
custom: 'custom';
}
export interface InputTypes {
password: 'password';
}
export type CreateFieldType = CreateFieldTypes[keyof CreateFieldTypes]
export type InputType = InputTypes[keyof InputTypes]
export type CreateFieldType = 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'singleSelect' | 'actions' | 'custom'
export type InputType = 'password'
export interface CreateField {
key: string;

View File

@ -7,4 +7,5 @@ export interface IUser {
name: string;
surname: string;
is_active: boolean;
role_id: number;
}