Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2723

Add type information for EJSON

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.2.0
    • Affects Version/s: None
    • Component/s: BSON

      Offer compile time only types for TS users, Extended JSON value types
      An example would be a EJSONTimestamp which would look like
      interface { $timestamp: { t: number, i: number }}
      Typescript can do clever deduction on union types based on key existence, worth exploring as an optional addition here

            Assignee:
            thomas.reggi@mongodb.com Thomas Reggi (Inactive)
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: