Skip to content
Search
Search the documentation
VoteCreateData
GitHub GitHub

VoteCreateData

Interface: VoteCreateData

Defined in: v1/types/votes.ts:13

Data included when a vote is created.

Properties

created_at

created_at: string

Defined in: v1/types/votes.ts:25

The timestamp of when the user voted.


expires_at

expires_at: string

Defined in: v1/types/votes.ts:30

The timestamp of when the vote expires (i.e., when the user can vote again). This is typically 12 hours after the created_at timestamp, but may vary based on the user’s voting history and other factors.


id

id: string

Defined in: v1/types/votes.ts:17

The unique identifier for this vote.


project

project: BaseProject

Defined in: v1/types/votes.ts:34

The project that was voted for.


query?

optional query?: Record<string, string>

Defined in: v1/types/votes.ts:42

The parsed query string parameters found on the /:id/vote page.

Example

			// for `/:id/vote?key1=value&key2=value2`
{ key1: "value", key2: "value2" }
		

user

user: User

Defined in: v1/types/votes.ts:46

The user who voted.


weight

weight: number

Defined in: v1/types/votes.ts:21

The amount of votes this vote counted for.