ประกาศค่าในไฟล์ interface

This commit is contained in:
Kittapath 2023-03-19 01:03:36 +07:00
parent a61dfb8789
commit e7198525a2
5 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,10 @@
interface Pagination {
rowsPerPage: number
}
interface DataOption {
id: string
name: string
}
export type { Pagination, DataOption }

View file

@ -0,0 +1,28 @@
interface DataProps {
row: RequestItemsObject
rowIndex: number
}
//ข้อมูล
interface RequestItemsObject {
id: string
name: string
certiNumber: string
start: Date
end: Date
}
//columns
interface Columns {
[index: number]: {
name: String
align: String
label: String
sortable: Boolean
field: String
headerStyle: String
style: String
}
}
export type { RequestItemsObject, Columns, DataProps }

View file

@ -0,0 +1,11 @@
//ข้อมูล
interface ResponseObject {
id: string
date: Date
status: string
level: string
refNo: string
refDate: Date
}
export type { ResponseObject }