Improve schema type helpers to use native Typescript utility types

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: TypeScript
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      InferIdType and OptionalId are logically complex types it would be ideal to break these types down into more readable components and attempt to make use of Typescript's utility types as much as possible.

      Potentially some combination of union types, and the Extract and/or Pick utility types: Extract<Pick<TSchema, '_id'> | ObjectId, NonNullable>

            Assignee:
            Unassigned
            Reporter:
            Neal Beeken
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: