update empty string to null
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user