CreatePeriodAction

Function: CreatePeriodAction()

function CreatePeriodAction(name, startDate, endDate): Promise<Response<void>>

Defined in: src/actions/period.tsx:64

Creates a new period with the specified name, start date, and end date.

Parameters

name

string

The name of the period to create.

startDate

string

The start date of the period in ISO format.

endDate

string

The end date of the period in ISO format.

Returns

Promise<Response<void>>
  • A promise that resolves to a response object indicating success or failure.