diff --git a/services/gunDB/contact-api/schema-types.ts b/services/gunDB/contact-api/schema-types.ts new file mode 100644 index 00000000..2d96ab21 --- /dev/null +++ b/services/gunDB/contact-api/schema-types.ts @@ -0,0 +1,15 @@ +/** + * @format + * Contains types that are used throughout the application. Written in + * typescript for easier implementation. + * + * Nominal types are archieved through the enum method as outlined here: + * https://basarat.gitbook.io/typescript/main-1/nominaltyping + */ +enum _EncSpontPayment { + _ = '' +} +/** + * Spontaneous payment as found inside a chat message body. + */ +export type EncSpontPayment = _EncSpontPayment & string