@xyo-network/payload-model 3.9.3 → 3.9.5
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.
- package/package.json +1 -1
- package/src/Payload.ts +4 -2
package/package.json
CHANGED
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>
|