mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-25 06:02:14 -06:00
[GH-ISSUE #57] Exported data is not type-safe by default #39
Labels
No labels
IndexedDB
browser
bug
dependencies
documentation
duplicate
enhancement
feature request
indexes
indexes
invalid
pull-request
query
question
transaction logging
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @appy-one on GitHub (Dec 31, 2021).
Original GitHub issue: https://github.com/appy-one/acebase/issues/57
Originally assigned to: @appy-one on GitHub.
Data that has no JSON notation such as dates, binary data and path references are not exported with the
type_safeflag set totrueby default; the flags itself is not documented and the TS method definition does not allow it to be set. The flag should be set totrueby default and allowed to be changed.Example:
Value of
json:{"text":"Checking typesafety","date":"2021-12-31T11:55:14.380Z","binary":"<~@VK^gEd8d<@<>o~>","reference":"some/other/data"}Expected (typesafe) value:
{"text":"Checking typesafety","date":{".type":"Date",".val":"2021-12-31T11:55:14.380Z"},"binary":{".type":"Buffer",".val":"<~@VK^gEd8d<@<>o~>"},"reference":{".type":"PathReference",".val":"some/other/data"}}@appy-one commented on GitHub (Dec 31, 2021):
Fix published in acebase v1.13.0