update empty string to null

This commit is contained in:
2025-07-28 18:17:52 +03:00
parent 6d71c60550
commit 462ed2b671
33 changed files with 369 additions and 242 deletions

View File

@@ -1,18 +1,17 @@
interface CompanyParams {
name: string
description: string
address: string
site: string
phone: string
email: string
logo: string
[key: string]: string | number
description: string | null
address: string | null
site: string | null
phone: string | null
email: string | null
logo: string | null
[key: string]: string | number | null
}
interface Company extends CompanyParams {
id: number
project_id: number
[key: string]: string | number
}
interface CompanyMask {

View File

@@ -1,11 +1,12 @@
interface UserParams {
fullname: string
department: string
role: string
phone: string
email: string
fullname: string | null
department: string | null
role: string | null
phone: string | null
email: string | null
is_blocked: boolean
company_id: number | null
[key: string]: string | boolean | number | null
}
interface User extends UserParams {
@@ -17,7 +18,6 @@ interface User extends UserParams {
username: string | null
photo: string | null
is_leave: boolean
[key: string]: unknown
}
export type {