View Issue Details

IDProjectCategoryView StatusLast Update
0005844Talerwallet (WebExtensions)public2019-08-18 21:07
ReporterFlorian DoldAssigned ToFlorian Dold 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0005844: use wrapper types instead of raw strings
DescriptionInstead of using e.g.

  contractHash: string

we should have wrapper types for everything. As TS doesn't support nominal typing (but only structural typing), we need to name the member of the wrapper structure according to its type. Thus the above becomes

  contractHash: HashCode

which is just an alias for

  contractHash: { sha512Hash: string }

To implement this without having to duplicate all structs, the JSON validator (checkable.ts) needs to support wrapping parsed JSON in these wrappers.
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-08-18 21:07 Florian Dold New Issue
2019-08-18 21:07 Florian Dold Status new => assigned
2019-08-18 21:07 Florian Dold Assigned To => Florian Dold