@xyo-network/payload-model 3.9.4 → 3.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Payload.ts +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/payload-model",
3
- "version": "3.9.4",
3
+ "version": "3.9.6",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
package/src/Payload.ts CHANGED
@@ -47,12 +47,14 @@ export type Payload<T extends void | EmptyObject | WithSchema = void, S extends
47
47
 
48
48
  export type OverridablePayload<T extends Payload> = WithoutMeta<Omit<T, 'schema'> & PayloadFields>
49
49
 
50
- /** @deprecated $sources are now optional in all Payloads */
51
50
  export type WithSources<T extends EmptyObject> = T & SourcesMetaField
52
- /** @deprecated $sources are now optional in all Payloads */
51
+ /** @deprecated optional $sources are now optional in all Payloads */
53
52
  export type WithOptionalSources<T extends EmptyObject> = (T & SourcesMetaField) | T
54
53
 
55
54
  export type PayloadWithSources<T extends void | EmptyObject | WithSchema = void, S extends Schema | void = void> = WithSources<Payload<T, S>>
55
+
56
+ /** @deprecated optional $sources are now optional in all Payloads */
57
+ // eslint-disable-next-line sonarjs/deprecation
56
58
  export type PayloadWithOptionalSources<T extends void | EmptyObject | WithSchema = void, S extends Schema | void = void> = WithOptionalSources<Payload<T, S>>
57
59
 
58
60
  export type WithAnySchema<T extends Payload> = OverridablePayload<T>