@roar-firebase-functions/core / Result
Interface: Result<T>
Defined in: packages/core/src/types/base.types.ts:11
Represents a Result type that combines an identifier with a generic data payload. This type is commonly used in CRUD operations to wrap responses.
Param
{string} - The id of the Result
Param
{T} - The base model of the result
Param
{Date | string | number} - The creation date of the Result
Param
{Date | string | number} - The last update date of the Result
Param
{string} - The id of the user who created the Result
Param
{string} - The id of the user who last modified the Result
Type Parameters
T
T
The type of the data payload*
Properties
createdAt?
optional
createdAt:string
|number
|Date
Defined in: packages/core/src/types/base.types.ts:14
createdBy?
optional
createdBy:string
Defined in: packages/core/src/types/base.types.ts:16
data
data:
T
Defined in: packages/core/src/types/base.types.ts:13
id
id:
string
Defined in: packages/core/src/types/base.types.ts:12
lastModifiedBy?
optional
lastModifiedBy:string
Defined in: packages/core/src/types/base.types.ts:17
updatedAt?
optional
updatedAt:string
|number
|Date
Defined in: packages/core/src/types/base.types.ts:15