From d89b7159ddb92c0a5754ec2541984b9ebed8a851 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Fri, 6 Jan 2023 15:30:59 +0200 Subject: [PATCH] - Ensure that `serializeRecord()` and `fromJSON()` are publically imported as part of the package import to fix user-defined types lookups (such as enums) --- source/libpb/package.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/libpb/package.d b/source/libpb/package.d index c6e14c9..2fc00aa 100644 --- a/source/libpb/package.d +++ b/source/libpb/package.d @@ -2,3 +2,7 @@ module libpb; public import libpb.exceptions; public import libpb.driver; + +// These being brought in means they can UDT (user-defined types) like enums it cannot see otherwise +public import libpb.serialization : serializeRecord; +public import libpb.deserialization : fromJSON; \ No newline at end of file