daostack / daostack/arc.js

CreatedAt field type varies across entities

Open
#456 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Some entities like `Reward`, have the `createdAt` state attribute of type `Date`, which is a Javascript which is a JS global object. Others like `Member` have the same field, but of type `Date`, which is a type alias for `number`. Some others like `Proposal` have `number | Date` where `Date` is JS Date object.

This should be handled in a uniform way, and update the `ItemMap` methods and tests for this accordingly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.