diff --git a/cheqd/did/v1/common.ts b/cheqd/did/v1/common.ts index 6f96410..7b64165 100644 --- a/cheqd/did/v1/common.ts +++ b/cheqd/did/v1/common.ts @@ -68,9 +68,8 @@ export const KeyValuePair = { }, create, I>>(base?: I): KeyValuePair { - return KeyValuePair.fromPartial(base ?? {}); + return KeyValuePair.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): KeyValuePair { const message = createBaseKeyValuePair(); message.key = object.key ?? ""; diff --git a/cheqd/did/v1/did.ts b/cheqd/did/v1/did.ts index c8aee41..fcf3130 100644 --- a/cheqd/did/v1/did.ts +++ b/cheqd/did/v1/did.ts @@ -251,9 +251,8 @@ export const Did = { }, create, I>>(base?: I): Did { - return Did.fromPartial(base ?? {}); + return Did.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Did { const message = createBaseDid(); message.context = object.context?.map((e) => e) || []; @@ -379,9 +378,8 @@ export const VerificationMethod = { }, create, I>>(base?: I): VerificationMethod { - return VerificationMethod.fromPartial(base ?? {}); + return VerificationMethod.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): VerificationMethod { const message = createBaseVerificationMethod(); message.id = object.id ?? ""; @@ -471,9 +469,8 @@ export const Service = { }, create, I>>(base?: I): Service { - return Service.fromPartial(base ?? {}); + return Service.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Service { const message = createBaseService(); message.id = object.id ?? ""; diff --git a/cheqd/did/v1/genesis.ts b/cheqd/did/v1/genesis.ts index 0265e70..f8fd777 100644 --- a/cheqd/did/v1/genesis.ts +++ b/cheqd/did/v1/genesis.ts @@ -73,9 +73,8 @@ export const GenesisState = { }, create, I>>(base?: I): GenesisState { - return GenesisState.fromPartial(base ?? {}); + return GenesisState.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): GenesisState { const message = createBaseGenesisState(); message.didNamespace = object.didNamespace ?? ""; diff --git a/cheqd/did/v1/query.ts b/cheqd/did/v1/query.ts index ed7d311..0f15985 100644 --- a/cheqd/did/v1/query.ts +++ b/cheqd/did/v1/query.ts @@ -61,9 +61,8 @@ export const QueryGetDidRequest = { }, create, I>>(base?: I): QueryGetDidRequest { - return QueryGetDidRequest.fromPartial(base ?? {}); + return QueryGetDidRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryGetDidRequest { const message = createBaseQueryGetDidRequest(); message.id = object.id ?? ""; @@ -135,9 +134,8 @@ export const QueryGetDidResponse = { }, create, I>>(base?: I): QueryGetDidResponse { - return QueryGetDidResponse.fromPartial(base ?? {}); + return QueryGetDidResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryGetDidResponse { const message = createBaseQueryGetDidResponse(); message.did = (object.did !== undefined && object.did !== null) ? Did.fromPartial(object.did) : undefined; diff --git a/cheqd/did/v1/stateValue.ts b/cheqd/did/v1/stateValue.ts index dc3a920..37683c3 100644 --- a/cheqd/did/v1/stateValue.ts +++ b/cheqd/did/v1/stateValue.ts @@ -84,9 +84,8 @@ export const StateValue = { }, create, I>>(base?: I): StateValue { - return StateValue.fromPartial(base ?? {}); + return StateValue.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): StateValue { const message = createBaseStateValue(); message.data = (object.data !== undefined && object.data !== null) ? Any.fromPartial(object.data) : undefined; @@ -203,9 +202,8 @@ export const Metadata = { }, create, I>>(base?: I): Metadata { - return Metadata.fromPartial(base ?? {}); + return Metadata.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Metadata { const message = createBaseMetadata(); message.created = object.created ?? ""; diff --git a/cheqd/did/v1/tx.ts b/cheqd/did/v1/tx.ts index 1a4615b..dbe765d 100644 --- a/cheqd/did/v1/tx.ts +++ b/cheqd/did/v1/tx.ts @@ -137,9 +137,8 @@ export const MsgCreateDid = { }, create, I>>(base?: I): MsgCreateDid { - return MsgCreateDid.fromPartial(base ?? {}); + return MsgCreateDid.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateDid { const message = createBaseMsgCreateDid(); message.payload = (object.payload !== undefined && object.payload !== null) @@ -214,9 +213,8 @@ export const MsgUpdateDid = { }, create, I>>(base?: I): MsgUpdateDid { - return MsgUpdateDid.fromPartial(base ?? {}); + return MsgUpdateDid.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgUpdateDid { const message = createBaseMsgUpdateDid(); message.payload = (object.payload !== undefined && object.payload !== null) @@ -291,9 +289,8 @@ export const MsgDeactivateDid = { }, create, I>>(base?: I): MsgDeactivateDid { - return MsgDeactivateDid.fromPartial(base ?? {}); + return MsgDeactivateDid.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgDeactivateDid { const message = createBaseMsgDeactivateDid(); message.payload = (object.payload !== undefined && object.payload !== null) @@ -368,9 +365,8 @@ export const SignInfo = { }, create, I>>(base?: I): SignInfo { - return SignInfo.fromPartial(base ?? {}); + return SignInfo.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): SignInfo { const message = createBaseSignInfo(); message.verificationMethodId = object.verificationMethodId ?? ""; @@ -427,9 +423,8 @@ export const MsgDeactivateDidPayload = { }, create, I>>(base?: I): MsgDeactivateDidPayload { - return MsgDeactivateDidPayload.fromPartial(base ?? {}); + return MsgDeactivateDidPayload.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgDeactivateDidPayload { const message = createBaseMsgDeactivateDidPayload(); message.id = object.id ?? ""; @@ -501,9 +496,8 @@ export const MsgDeactivateDidResponse = { }, create, I>>(base?: I): MsgDeactivateDidResponse { - return MsgDeactivateDidResponse.fromPartial(base ?? {}); + return MsgDeactivateDidResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgDeactivateDidResponse { const message = createBaseMsgDeactivateDidResponse(); message.did = (object.did !== undefined && object.did !== null) ? Did.fromPartial(object.did) : undefined; @@ -722,9 +716,8 @@ export const MsgCreateDidPayload = { }, create, I>>(base?: I): MsgCreateDidPayload { - return MsgCreateDidPayload.fromPartial(base ?? {}); + return MsgCreateDidPayload.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateDidPayload { const message = createBaseMsgCreateDidPayload(); message.context = object.context?.map((e) => e) || []; @@ -790,9 +783,8 @@ export const MsgCreateDidResponse = { }, create, I>>(base?: I): MsgCreateDidResponse { - return MsgCreateDidResponse.fromPartial(base ?? {}); + return MsgCreateDidResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateDidResponse { const message = createBaseMsgCreateDidResponse(); message.id = object.id ?? ""; @@ -1023,9 +1015,8 @@ export const MsgUpdateDidPayload = { }, create, I>>(base?: I): MsgUpdateDidPayload { - return MsgUpdateDidPayload.fromPartial(base ?? {}); + return MsgUpdateDidPayload.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgUpdateDidPayload { const message = createBaseMsgUpdateDidPayload(); message.context = object.context?.map((e) => e) || []; @@ -1092,9 +1083,8 @@ export const MsgUpdateDidResponse = { }, create, I>>(base?: I): MsgUpdateDidResponse { - return MsgUpdateDidResponse.fromPartial(base ?? {}); + return MsgUpdateDidResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgUpdateDidResponse { const message = createBaseMsgUpdateDidResponse(); message.id = object.id ?? ""; diff --git a/cheqd/did/v2/diddoc.ts b/cheqd/did/v2/diddoc.ts index f9d683e..bdd857b 100644 --- a/cheqd/did/v2/diddoc.ts +++ b/cheqd/did/v2/diddoc.ts @@ -372,9 +372,8 @@ export const DidDoc = { }, create, I>>(base?: I): DidDoc { - return DidDoc.fromPartial(base ?? {}); + return DidDoc.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): DidDoc { const message = createBaseDidDoc(); message.context = object.context?.map((e) => e) || []; @@ -484,9 +483,8 @@ export const VerificationMethod = { }, create, I>>(base?: I): VerificationMethod { - return VerificationMethod.fromPartial(base ?? {}); + return VerificationMethod.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): VerificationMethod { const message = createBaseVerificationMethod(); message.id = object.id ?? ""; @@ -575,9 +573,8 @@ export const Service = { }, create, I>>(base?: I): Service { - return Service.fromPartial(base ?? {}); + return Service.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Service { const message = createBaseService(); message.id = object.id ?? ""; @@ -651,9 +648,8 @@ export const DidDocWithMetadata = { }, create, I>>(base?: I): DidDocWithMetadata { - return DidDocWithMetadata.fromPartial(base ?? {}); + return DidDocWithMetadata.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): DidDocWithMetadata { const message = createBaseDidDocWithMetadata(); message.didDoc = (object.didDoc !== undefined && object.didDoc !== null) @@ -793,9 +789,8 @@ export const Metadata = { }, create, I>>(base?: I): Metadata { - return Metadata.fromPartial(base ?? {}); + return Metadata.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Metadata { const message = createBaseMetadata(); message.created = object.created ?? undefined; diff --git a/cheqd/did/v2/fee.ts b/cheqd/did/v2/fee.ts index 92bdc09..33691b4 100644 --- a/cheqd/did/v2/fee.ts +++ b/cheqd/did/v2/fee.ts @@ -129,9 +129,8 @@ export const FeeParams = { }, create, I>>(base?: I): FeeParams { - return FeeParams.fromPartial(base ?? {}); + return FeeParams.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): FeeParams { const message = createBaseFeeParams(); message.createDid = (object.createDid !== undefined && object.createDid !== null) diff --git a/cheqd/did/v2/genesis.ts b/cheqd/did/v2/genesis.ts index 8f706db..8207f87 100644 --- a/cheqd/did/v2/genesis.ts +++ b/cheqd/did/v2/genesis.ts @@ -95,9 +95,8 @@ export const DidDocVersionSet = { }, create, I>>(base?: I): DidDocVersionSet { - return DidDocVersionSet.fromPartial(base ?? {}); + return DidDocVersionSet.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): DidDocVersionSet { const message = createBaseDidDocVersionSet(); message.latestVersion = object.latestVersion ?? ""; @@ -186,9 +185,8 @@ export const GenesisState = { }, create, I>>(base?: I): GenesisState { - return GenesisState.fromPartial(base ?? {}); + return GenesisState.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): GenesisState { const message = createBaseGenesisState(); message.didNamespace = object.didNamespace ?? ""; diff --git a/cheqd/did/v2/query.ts b/cheqd/did/v2/query.ts index f5c78fc..2b49da5 100644 --- a/cheqd/did/v2/query.ts +++ b/cheqd/did/v2/query.ts @@ -136,9 +136,8 @@ export const QueryDidDocRequest = { }, create, I>>(base?: I): QueryDidDocRequest { - return QueryDidDocRequest.fromPartial(base ?? {}); + return QueryDidDocRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryDidDocRequest { const message = createBaseQueryDidDocRequest(); message.id = object.id ?? ""; @@ -194,9 +193,8 @@ export const QueryDidDocResponse = { }, create, I>>(base?: I): QueryDidDocResponse { - return QueryDidDocResponse.fromPartial(base ?? {}); + return QueryDidDocResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryDidDocResponse { const message = createBaseQueryDidDocResponse(); message.value = (object.value !== undefined && object.value !== null) @@ -270,9 +268,8 @@ export const QueryDidDocVersionRequest = { }, create, I>>(base?: I): QueryDidDocVersionRequest { - return QueryDidDocVersionRequest.fromPartial(base ?? {}); + return QueryDidDocVersionRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryDidDocVersionRequest { const message = createBaseQueryDidDocVersionRequest(); message.id = object.id ?? ""; @@ -329,9 +326,8 @@ export const QueryDidDocVersionResponse = { }, create, I>>(base?: I): QueryDidDocVersionResponse { - return QueryDidDocVersionResponse.fromPartial(base ?? {}); + return QueryDidDocVersionResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryDidDocVersionResponse { const message = createBaseQueryDidDocVersionResponse(); message.value = (object.value !== undefined && object.value !== null) @@ -407,9 +403,8 @@ export const QueryAllDidDocVersionsMetadataRequest = { create, I>>( base?: I, ): QueryAllDidDocVersionsMetadataRequest { - return QueryAllDidDocVersionsMetadataRequest.fromPartial(base ?? {}); + return QueryAllDidDocVersionsMetadataRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryAllDidDocVersionsMetadataRequest { @@ -488,9 +483,8 @@ export const QueryAllDidDocVersionsMetadataResponse = { create, I>>( base?: I, ): QueryAllDidDocVersionsMetadataResponse { - return QueryAllDidDocVersionsMetadataResponse.fromPartial(base ?? {}); + return QueryAllDidDocVersionsMetadataResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryAllDidDocVersionsMetadataResponse { diff --git a/cheqd/did/v2/tx.ts b/cheqd/did/v2/tx.ts index bf928dd..f2b3466 100644 --- a/cheqd/did/v2/tx.ts +++ b/cheqd/did/v2/tx.ts @@ -285,9 +285,8 @@ export const MsgCreateDidDoc = { }, create, I>>(base?: I): MsgCreateDidDoc { - return MsgCreateDidDoc.fromPartial(base ?? {}); + return MsgCreateDidDoc.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateDidDoc { const message = createBaseMsgCreateDidDoc(); message.payload = (object.payload !== undefined && object.payload !== null) @@ -362,9 +361,8 @@ export const MsgUpdateDidDoc = { }, create, I>>(base?: I): MsgUpdateDidDoc { - return MsgUpdateDidDoc.fromPartial(base ?? {}); + return MsgUpdateDidDoc.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgUpdateDidDoc { const message = createBaseMsgUpdateDidDoc(); message.payload = (object.payload !== undefined && object.payload !== null) @@ -439,9 +437,8 @@ export const MsgDeactivateDidDoc = { }, create, I>>(base?: I): MsgDeactivateDidDoc { - return MsgDeactivateDidDoc.fromPartial(base ?? {}); + return MsgDeactivateDidDoc.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgDeactivateDidDoc { const message = createBaseMsgDeactivateDidDoc(); message.payload = (object.payload !== undefined && object.payload !== null) @@ -516,9 +513,8 @@ export const SignInfo = { }, create, I>>(base?: I): SignInfo { - return SignInfo.fromPartial(base ?? {}); + return SignInfo.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): SignInfo { const message = createBaseSignInfo(); message.verificationMethodId = object.verificationMethodId ?? ""; @@ -750,9 +746,8 @@ export const MsgCreateDidDocPayload = { }, create, I>>(base?: I): MsgCreateDidDocPayload { - return MsgCreateDidDocPayload.fromPartial(base ?? {}); + return MsgCreateDidDocPayload.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateDidDocPayload { const message = createBaseMsgCreateDidDocPayload(); message.context = object.context?.map((e) => e) || []; @@ -819,9 +814,8 @@ export const MsgCreateDidDocResponse = { }, create, I>>(base?: I): MsgCreateDidDocResponse { - return MsgCreateDidDocResponse.fromPartial(base ?? {}); + return MsgCreateDidDocResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateDidDocResponse { const message = createBaseMsgCreateDidDocResponse(); message.value = (object.value !== undefined && object.value !== null) @@ -1054,9 +1048,8 @@ export const MsgUpdateDidDocPayload = { }, create, I>>(base?: I): MsgUpdateDidDocPayload { - return MsgUpdateDidDocPayload.fromPartial(base ?? {}); + return MsgUpdateDidDocPayload.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgUpdateDidDocPayload { const message = createBaseMsgUpdateDidDocPayload(); message.context = object.context?.map((e) => e) || []; @@ -1123,9 +1116,8 @@ export const MsgUpdateDidDocResponse = { }, create, I>>(base?: I): MsgUpdateDidDocResponse { - return MsgUpdateDidDocResponse.fromPartial(base ?? {}); + return MsgUpdateDidDocResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgUpdateDidDocResponse { const message = createBaseMsgUpdateDidDocResponse(); message.value = (object.value !== undefined && object.value !== null) @@ -1199,9 +1191,8 @@ export const MsgDeactivateDidDocPayload = { }, create, I>>(base?: I): MsgDeactivateDidDocPayload { - return MsgDeactivateDidDocPayload.fromPartial(base ?? {}); + return MsgDeactivateDidDocPayload.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgDeactivateDidDocPayload { const message = createBaseMsgDeactivateDidDocPayload(); message.id = object.id ?? ""; @@ -1258,9 +1249,8 @@ export const MsgDeactivateDidDocResponse = { }, create, I>>(base?: I): MsgDeactivateDidDocResponse { - return MsgDeactivateDidDocResponse.fromPartial(base ?? {}); + return MsgDeactivateDidDocResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgDeactivateDidDocResponse { const message = createBaseMsgDeactivateDidDocResponse(); message.value = (object.value !== undefined && object.value !== null) diff --git a/cheqd/resource/v1/genesis.ts b/cheqd/resource/v1/genesis.ts index 96102ec..b3a21e1 100644 --- a/cheqd/resource/v1/genesis.ts +++ b/cheqd/resource/v1/genesis.ts @@ -60,9 +60,8 @@ export const GenesisState = { }, create, I>>(base?: I): GenesisState { - return GenesisState.fromPartial(base ?? {}); + return GenesisState.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): GenesisState { const message = createBaseGenesisState(); message.resourceList = object.resourceList?.map((e) => Resource.fromPartial(e)) || []; diff --git a/cheqd/resource/v1/query.ts b/cheqd/resource/v1/query.ts index 9df521b..f0a2a2b 100644 --- a/cheqd/resource/v1/query.ts +++ b/cheqd/resource/v1/query.ts @@ -94,9 +94,8 @@ export const QueryGetResourceRequest = { }, create, I>>(base?: I): QueryGetResourceRequest { - return QueryGetResourceRequest.fromPartial(base ?? {}); + return QueryGetResourceRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryGetResourceRequest { const message = createBaseQueryGetResourceRequest(); message.collectionId = object.collectionId ?? ""; @@ -153,9 +152,8 @@ export const QueryResourceResponse = { }, create, I>>(base?: I): QueryResourceResponse { - return QueryResourceResponse.fromPartial(base ?? {}); + return QueryResourceResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryResourceResponse { const message = createBaseQueryResourceResponse(); message.resource = (object.resource !== undefined && object.resource !== null) @@ -215,9 +213,8 @@ export const QueryGetCollectionResourcesRequest = { create, I>>( base?: I, ): QueryGetCollectionResourcesRequest { - return QueryGetCollectionResourcesRequest.fromPartial(base ?? {}); + return QueryGetCollectionResourcesRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryGetCollectionResourcesRequest { @@ -279,9 +276,8 @@ export const QueryCollectionResourcesResponse = { create, I>>( base?: I, ): QueryCollectionResourcesResponse { - return QueryCollectionResourcesResponse.fromPartial(base ?? {}); + return QueryCollectionResourcesResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryCollectionResourcesResponse { @@ -371,9 +367,8 @@ export const QueryGetAllResourceVersionsRequest = { create, I>>( base?: I, ): QueryGetAllResourceVersionsRequest { - return QueryGetAllResourceVersionsRequest.fromPartial(base ?? {}); + return QueryGetAllResourceVersionsRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryGetAllResourceVersionsRequest { @@ -437,9 +432,8 @@ export const QueryGetAllResourceVersionsResponse = { create, I>>( base?: I, ): QueryGetAllResourceVersionsResponse { - return QueryGetAllResourceVersionsResponse.fromPartial(base ?? {}); + return QueryGetAllResourceVersionsResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryGetAllResourceVersionsResponse { diff --git a/cheqd/resource/v1/resource.ts b/cheqd/resource/v1/resource.ts index a1e4347..7c740ba 100644 --- a/cheqd/resource/v1/resource.ts +++ b/cheqd/resource/v1/resource.ts @@ -83,9 +83,8 @@ export const Resource = { }, create, I>>(base?: I): Resource { - return Resource.fromPartial(base ?? {}); + return Resource.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Resource { const message = createBaseResource(); message.header = (object.header !== undefined && object.header !== null) @@ -268,9 +267,8 @@ export const ResourceHeader = { }, create, I>>(base?: I): ResourceHeader { - return ResourceHeader.fromPartial(base ?? {}); + return ResourceHeader.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): ResourceHeader { const message = createBaseResourceHeader(); message.collectionId = object.collectionId ?? ""; diff --git a/cheqd/resource/v1/tx.ts b/cheqd/resource/v1/tx.ts index 92a69eb..0cdf467 100644 --- a/cheqd/resource/v1/tx.ts +++ b/cheqd/resource/v1/tx.ts @@ -87,9 +87,8 @@ export const MsgCreateResource = { }, create, I>>(base?: I): MsgCreateResource { - return MsgCreateResource.fromPartial(base ?? {}); + return MsgCreateResource.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateResource { const message = createBaseMsgCreateResource(); message.payload = (object.payload !== undefined && object.payload !== null) @@ -206,9 +205,8 @@ export const MsgCreateResourcePayload = { }, create, I>>(base?: I): MsgCreateResourcePayload { - return MsgCreateResourcePayload.fromPartial(base ?? {}); + return MsgCreateResourcePayload.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateResourcePayload { const message = createBaseMsgCreateResourcePayload(); message.collectionId = object.collectionId ?? ""; @@ -268,9 +266,8 @@ export const MsgCreateResourceResponse = { }, create, I>>(base?: I): MsgCreateResourceResponse { - return MsgCreateResourceResponse.fromPartial(base ?? {}); + return MsgCreateResourceResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateResourceResponse { const message = createBaseMsgCreateResourceResponse(); message.resource = (object.resource !== undefined && object.resource !== null) diff --git a/cheqd/resource/v2/fee.ts b/cheqd/resource/v2/fee.ts index eebe53e..e976684 100644 --- a/cheqd/resource/v2/fee.ts +++ b/cheqd/resource/v2/fee.ts @@ -132,9 +132,8 @@ export const FeeParams = { }, create, I>>(base?: I): FeeParams { - return FeeParams.fromPartial(base ?? {}); + return FeeParams.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): FeeParams { const message = createBaseFeeParams(); message.image = (object.image !== undefined && object.image !== null) ? Coin.fromPartial(object.image) : undefined; diff --git a/cheqd/resource/v2/genesis.ts b/cheqd/resource/v2/genesis.ts index 0106221..29a3aef 100644 --- a/cheqd/resource/v2/genesis.ts +++ b/cheqd/resource/v2/genesis.ts @@ -81,9 +81,8 @@ export const GenesisState = { }, create, I>>(base?: I): GenesisState { - return GenesisState.fromPartial(base ?? {}); + return GenesisState.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): GenesisState { const message = createBaseGenesisState(); message.resources = object.resources?.map((e) => ResourceWithMetadata.fromPartial(e)) || []; diff --git a/cheqd/resource/v2/query.ts b/cheqd/resource/v2/query.ts index c5a634d..6bb3a2e 100644 --- a/cheqd/resource/v2/query.ts +++ b/cheqd/resource/v2/query.ts @@ -143,9 +143,8 @@ export const QueryResourceRequest = { }, create, I>>(base?: I): QueryResourceRequest { - return QueryResourceRequest.fromPartial(base ?? {}); + return QueryResourceRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryResourceRequest { const message = createBaseQueryResourceRequest(); message.collectionId = object.collectionId ?? ""; @@ -202,9 +201,8 @@ export const QueryResourceResponse = { }, create, I>>(base?: I): QueryResourceResponse { - return QueryResourceResponse.fromPartial(base ?? {}); + return QueryResourceResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryResourceResponse { const message = createBaseQueryResourceResponse(); message.resource = (object.resource !== undefined && object.resource !== null) @@ -278,9 +276,8 @@ export const QueryResourceMetadataRequest = { }, create, I>>(base?: I): QueryResourceMetadataRequest { - return QueryResourceMetadataRequest.fromPartial(base ?? {}); + return QueryResourceMetadataRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryResourceMetadataRequest { const message = createBaseQueryResourceMetadataRequest(); message.collectionId = object.collectionId ?? ""; @@ -337,9 +334,8 @@ export const QueryResourceMetadataResponse = { }, create, I>>(base?: I): QueryResourceMetadataResponse { - return QueryResourceMetadataResponse.fromPartial(base ?? {}); + return QueryResourceMetadataResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryResourceMetadataResponse { @@ -415,9 +411,8 @@ export const QueryCollectionResourcesRequest = { }, create, I>>(base?: I): QueryCollectionResourcesRequest { - return QueryCollectionResourcesRequest.fromPartial(base ?? {}); + return QueryCollectionResourcesRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryCollectionResourcesRequest { @@ -496,9 +491,8 @@ export const QueryCollectionResourcesResponse = { create, I>>( base?: I, ): QueryCollectionResourcesResponse { - return QueryCollectionResourcesResponse.fromPartial(base ?? {}); + return QueryCollectionResourcesResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): QueryCollectionResourcesResponse { diff --git a/cheqd/resource/v2/resource.ts b/cheqd/resource/v2/resource.ts index 0ddc667..b0de42f 100644 --- a/cheqd/resource/v2/resource.ts +++ b/cheqd/resource/v2/resource.ts @@ -158,9 +158,8 @@ export const Resource = { }, create, I>>(base?: I): Resource { - return Resource.fromPartial(base ?? {}); + return Resource.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Resource { const message = createBaseResource(); message.data = object.data ?? new Uint8Array(0); @@ -372,9 +371,8 @@ export const Metadata = { }, create, I>>(base?: I): Metadata { - return Metadata.fromPartial(base ?? {}); + return Metadata.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Metadata { const message = createBaseMetadata(); message.collectionId = object.collectionId ?? ""; @@ -456,9 +454,8 @@ export const AlternativeUri = { }, create, I>>(base?: I): AlternativeUri { - return AlternativeUri.fromPartial(base ?? {}); + return AlternativeUri.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): AlternativeUri { const message = createBaseAlternativeUri(); message.uri = object.uri ?? ""; @@ -531,9 +528,8 @@ export const ResourceWithMetadata = { }, create, I>>(base?: I): ResourceWithMetadata { - return ResourceWithMetadata.fromPartial(base ?? {}); + return ResourceWithMetadata.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): ResourceWithMetadata { const message = createBaseResourceWithMetadata(); message.resource = (object.resource !== undefined && object.resource !== null) diff --git a/cheqd/resource/v2/tx.ts b/cheqd/resource/v2/tx.ts index 8197530..c8d1d7c 100644 --- a/cheqd/resource/v2/tx.ts +++ b/cheqd/resource/v2/tx.ts @@ -144,9 +144,8 @@ export const MsgCreateResource = { }, create, I>>(base?: I): MsgCreateResource { - return MsgCreateResource.fromPartial(base ?? {}); + return MsgCreateResource.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateResource { const message = createBaseMsgCreateResource(); message.payload = (object.payload !== undefined && object.payload !== null) @@ -301,9 +300,8 @@ export const MsgCreateResourcePayload = { }, create, I>>(base?: I): MsgCreateResourcePayload { - return MsgCreateResourcePayload.fromPartial(base ?? {}); + return MsgCreateResourcePayload.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateResourcePayload { const message = createBaseMsgCreateResourcePayload(); message.data = object.data ?? new Uint8Array(0); @@ -365,9 +363,8 @@ export const MsgCreateResourceResponse = { }, create, I>>(base?: I): MsgCreateResourceResponse { - return MsgCreateResourceResponse.fromPartial(base ?? {}); + return MsgCreateResourceResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MsgCreateResourceResponse { const message = createBaseMsgCreateResourceResponse(); message.resource = (object.resource !== undefined && object.resource !== null) diff --git a/cosmos/base/query/v1beta1/pagination.ts b/cosmos/base/query/v1beta1/pagination.ts index 0afe0c5..474be68 100644 --- a/cosmos/base/query/v1beta1/pagination.ts +++ b/cosmos/base/query/v1beta1/pagination.ts @@ -173,9 +173,8 @@ export const PageRequest = { }, create, I>>(base?: I): PageRequest { - return PageRequest.fromPartial(base ?? {}); + return PageRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): PageRequest { const message = createBasePageRequest(); message.key = object.key ?? new Uint8Array(0); @@ -253,9 +252,8 @@ export const PageResponse = { }, create, I>>(base?: I): PageResponse { - return PageResponse.fromPartial(base ?? {}); + return PageResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): PageResponse { const message = createBasePageResponse(); message.nextKey = object.nextKey ?? new Uint8Array(0); diff --git a/cosmos/base/v1beta1/coin.ts b/cosmos/base/v1beta1/coin.ts index c5d375f..9c47697 100644 --- a/cosmos/base/v1beta1/coin.ts +++ b/cosmos/base/v1beta1/coin.ts @@ -98,9 +98,8 @@ export const Coin = { }, create, I>>(base?: I): Coin { - return Coin.fromPartial(base ?? {}); + return Coin.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Coin { const message = createBaseCoin(); message.denom = object.denom ?? ""; @@ -173,9 +172,8 @@ export const DecCoin = { }, create, I>>(base?: I): DecCoin { - return DecCoin.fromPartial(base ?? {}); + return DecCoin.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): DecCoin { const message = createBaseDecCoin(); message.denom = object.denom ?? ""; @@ -232,9 +230,8 @@ export const IntProto = { }, create, I>>(base?: I): IntProto { - return IntProto.fromPartial(base ?? {}); + return IntProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): IntProto { const message = createBaseIntProto(); message.int = object.int ?? ""; @@ -290,9 +287,8 @@ export const DecProto = { }, create, I>>(base?: I): DecProto { - return DecProto.fromPartial(base ?? {}); + return DecProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): DecProto { const message = createBaseDecProto(); message.dec = object.dec ?? ""; diff --git a/cosmos_proto/cosmos.ts b/cosmos_proto/cosmos.ts index ccbd38e..9de9e5e 100644 --- a/cosmos_proto/cosmos.ts +++ b/cosmos_proto/cosmos.ts @@ -156,9 +156,8 @@ export const InterfaceDescriptor = { }, create, I>>(base?: I): InterfaceDescriptor { - return InterfaceDescriptor.fromPartial(base ?? {}); + return InterfaceDescriptor.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): InterfaceDescriptor { const message = createBaseInterfaceDescriptor(); message.name = object.name ?? ""; @@ -257,9 +256,8 @@ export const ScalarDescriptor = { }, create, I>>(base?: I): ScalarDescriptor { - return ScalarDescriptor.fromPartial(base ?? {}); + return ScalarDescriptor.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): ScalarDescriptor { const message = createBaseScalarDescriptor(); message.name = object.name ?? ""; diff --git a/google/api/http.ts b/google/api/http.ts index 2b77709..be9adbc 100644 --- a/google/api/http.ts +++ b/google/api/http.ts @@ -438,9 +438,8 @@ export const Http = { }, create, I>>(base?: I): Http { - return Http.fromPartial(base ?? {}); + return Http.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Http { const message = createBaseHttp(); message.rules = object.rules?.map((e) => HttpRule.fromPartial(e)) || []; @@ -638,9 +637,8 @@ export const HttpRule = { }, create, I>>(base?: I): HttpRule { - return HttpRule.fromPartial(base ?? {}); + return HttpRule.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): HttpRule { const message = createBaseHttpRule(); message.selector = object.selector ?? ""; @@ -720,9 +718,8 @@ export const CustomHttpPattern = { }, create, I>>(base?: I): CustomHttpPattern { - return CustomHttpPattern.fromPartial(base ?? {}); + return CustomHttpPattern.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): CustomHttpPattern { const message = createBaseCustomHttpPattern(); message.kind = object.kind ?? ""; diff --git a/google/protobuf/any.ts b/google/protobuf/any.ts index 9a073c8..c4d340c 100644 --- a/google/protobuf/any.ts +++ b/google/protobuf/any.ts @@ -188,9 +188,8 @@ export const Any = { }, create, I>>(base?: I): Any { - return Any.fromPartial(base ?? {}); + return Any.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Any { const message = createBaseAny(); message.typeUrl = object.typeUrl ?? ""; diff --git a/google/protobuf/descriptor.ts b/google/protobuf/descriptor.ts index 2746b5b..f747103 100644 --- a/google/protobuf/descriptor.ts +++ b/google/protobuf/descriptor.ts @@ -1396,9 +1396,8 @@ export const FileDescriptorSet = { }, create, I>>(base?: I): FileDescriptorSet { - return FileDescriptorSet.fromPartial(base ?? {}); + return FileDescriptorSet.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): FileDescriptorSet { const message = createBaseFileDescriptorSet(); message.file = object.file?.map((e) => FileDescriptorProto.fromPartial(e)) || []; @@ -1668,9 +1667,8 @@ export const FileDescriptorProto = { }, create, I>>(base?: I): FileDescriptorProto { - return FileDescriptorProto.fromPartial(base ?? {}); + return FileDescriptorProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): FileDescriptorProto { const message = createBaseFileDescriptorProto(); message.name = object.name ?? ""; @@ -1891,9 +1889,8 @@ export const DescriptorProto = { }, create, I>>(base?: I): DescriptorProto { - return DescriptorProto.fromPartial(base ?? {}); + return DescriptorProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): DescriptorProto { const message = createBaseDescriptorProto(); message.name = object.name ?? ""; @@ -1990,9 +1987,8 @@ export const DescriptorProto_ExtensionRange = { }, create, I>>(base?: I): DescriptorProto_ExtensionRange { - return DescriptorProto_ExtensionRange.fromPartial(base ?? {}); + return DescriptorProto_ExtensionRange.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): DescriptorProto_ExtensionRange { @@ -2067,9 +2063,8 @@ export const DescriptorProto_ReservedRange = { }, create, I>>(base?: I): DescriptorProto_ReservedRange { - return DescriptorProto_ReservedRange.fromPartial(base ?? {}); + return DescriptorProto_ReservedRange.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): DescriptorProto_ReservedRange { @@ -2132,9 +2127,8 @@ export const ExtensionRangeOptions = { }, create, I>>(base?: I): ExtensionRangeOptions { - return ExtensionRangeOptions.fromPartial(base ?? {}); + return ExtensionRangeOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): ExtensionRangeOptions { const message = createBaseExtensionRangeOptions(); message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; @@ -2344,9 +2338,8 @@ export const FieldDescriptorProto = { }, create, I>>(base?: I): FieldDescriptorProto { - return FieldDescriptorProto.fromPartial(base ?? {}); + return FieldDescriptorProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): FieldDescriptorProto { const message = createBaseFieldDescriptorProto(); message.name = object.name ?? ""; @@ -2430,9 +2423,8 @@ export const OneofDescriptorProto = { }, create, I>>(base?: I): OneofDescriptorProto { - return OneofDescriptorProto.fromPartial(base ?? {}); + return OneofDescriptorProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): OneofDescriptorProto { const message = createBaseOneofDescriptorProto(); message.name = object.name ?? ""; @@ -2551,9 +2543,8 @@ export const EnumDescriptorProto = { }, create, I>>(base?: I): EnumDescriptorProto { - return EnumDescriptorProto.fromPartial(base ?? {}); + return EnumDescriptorProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): EnumDescriptorProto { const message = createBaseEnumDescriptorProto(); message.name = object.name ?? ""; @@ -2631,9 +2622,8 @@ export const EnumDescriptorProto_EnumReservedRange = { create, I>>( base?: I, ): EnumDescriptorProto_EnumReservedRange { - return EnumDescriptorProto_EnumReservedRange.fromPartial(base ?? {}); + return EnumDescriptorProto_EnumReservedRange.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>( object: I, ): EnumDescriptorProto_EnumReservedRange { @@ -2722,9 +2712,8 @@ export const EnumValueDescriptorProto = { }, create, I>>(base?: I): EnumValueDescriptorProto { - return EnumValueDescriptorProto.fromPartial(base ?? {}); + return EnumValueDescriptorProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): EnumValueDescriptorProto { const message = createBaseEnumValueDescriptorProto(); message.name = object.name ?? ""; @@ -2814,9 +2803,8 @@ export const ServiceDescriptorProto = { }, create, I>>(base?: I): ServiceDescriptorProto { - return ServiceDescriptorProto.fromPartial(base ?? {}); + return ServiceDescriptorProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): ServiceDescriptorProto { const message = createBaseServiceDescriptorProto(); message.name = object.name ?? ""; @@ -2955,9 +2943,8 @@ export const MethodDescriptorProto = { }, create, I>>(base?: I): MethodDescriptorProto { - return MethodDescriptorProto.fromPartial(base ?? {}); + return MethodDescriptorProto.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MethodDescriptorProto { const message = createBaseMethodDescriptorProto(); message.name = object.name ?? ""; @@ -3328,9 +3315,8 @@ export const FileOptions = { }, create, I>>(base?: I): FileOptions { - return FileOptions.fromPartial(base ?? {}); + return FileOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): FileOptions { const message = createBaseFileOptions(); message.javaPackage = object.javaPackage ?? ""; @@ -3491,9 +3477,8 @@ export const MessageOptions = { }, create, I>>(base?: I): MessageOptions { - return MessageOptions.fromPartial(base ?? {}); + return MessageOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MessageOptions { const message = createBaseMessageOptions(); message.messageSetWireFormat = object.messageSetWireFormat ?? false; @@ -3710,9 +3695,8 @@ export const FieldOptions = { }, create, I>>(base?: I): FieldOptions { - return FieldOptions.fromPartial(base ?? {}); + return FieldOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): FieldOptions { const message = createBaseFieldOptions(); message.ctype = object.ctype ?? 0; @@ -3782,9 +3766,8 @@ export const OneofOptions = { }, create, I>>(base?: I): OneofOptions { - return OneofOptions.fromPartial(base ?? {}); + return OneofOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): OneofOptions { const message = createBaseOneofOptions(); message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; @@ -3888,9 +3871,8 @@ export const EnumOptions = { }, create, I>>(base?: I): EnumOptions { - return EnumOptions.fromPartial(base ?? {}); + return EnumOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): EnumOptions { const message = createBaseEnumOptions(); message.allowAlias = object.allowAlias ?? false; @@ -3967,9 +3949,8 @@ export const EnumValueOptions = { }, create, I>>(base?: I): EnumValueOptions { - return EnumValueOptions.fromPartial(base ?? {}); + return EnumValueOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): EnumValueOptions { const message = createBaseEnumValueOptions(); message.deprecated = object.deprecated ?? false; @@ -4044,9 +4025,8 @@ export const ServiceOptions = { }, create, I>>(base?: I): ServiceOptions { - return ServiceOptions.fromPartial(base ?? {}); + return ServiceOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): ServiceOptions { const message = createBaseServiceOptions(); message.deprecated = object.deprecated ?? false; @@ -4137,9 +4117,8 @@ export const MethodOptions = { }, create, I>>(base?: I): MethodOptions { - return MethodOptions.fromPartial(base ?? {}); + return MethodOptions.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): MethodOptions { const message = createBaseMethodOptions(); message.deprecated = object.deprecated ?? false; @@ -4291,9 +4270,8 @@ export const UninterpretedOption = { }, create, I>>(base?: I): UninterpretedOption { - return UninterpretedOption.fromPartial(base ?? {}); + return UninterpretedOption.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): UninterpretedOption { const message = createBaseUninterpretedOption(); message.name = object.name?.map((e) => UninterpretedOption_NamePart.fromPartial(e)) || []; @@ -4375,9 +4353,8 @@ export const UninterpretedOption_NamePart = { }, create, I>>(base?: I): UninterpretedOption_NamePart { - return UninterpretedOption_NamePart.fromPartial(base ?? {}); + return UninterpretedOption_NamePart.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): UninterpretedOption_NamePart { const message = createBaseUninterpretedOption_NamePart(); message.namePart = object.namePart ?? ""; @@ -4438,9 +4415,8 @@ export const SourceCodeInfo = { }, create, I>>(base?: I): SourceCodeInfo { - return SourceCodeInfo.fromPartial(base ?? {}); + return SourceCodeInfo.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): SourceCodeInfo { const message = createBaseSourceCodeInfo(); message.location = object.location?.map((e) => SourceCodeInfo_Location.fromPartial(e)) || []; @@ -4580,9 +4556,8 @@ export const SourceCodeInfo_Location = { }, create, I>>(base?: I): SourceCodeInfo_Location { - return SourceCodeInfo_Location.fromPartial(base ?? {}); + return SourceCodeInfo_Location.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): SourceCodeInfo_Location { const message = createBaseSourceCodeInfo_Location(); message.path = object.path?.map((e) => e) || []; @@ -4646,9 +4621,8 @@ export const GeneratedCodeInfo = { }, create, I>>(base?: I): GeneratedCodeInfo { - return GeneratedCodeInfo.fromPartial(base ?? {}); + return GeneratedCodeInfo.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): GeneratedCodeInfo { const message = createBaseGeneratedCodeInfo(); message.annotation = object.annotation?.map((e) => GeneratedCodeInfo_Annotation.fromPartial(e)) || []; @@ -4774,9 +4748,8 @@ export const GeneratedCodeInfo_Annotation = { }, create, I>>(base?: I): GeneratedCodeInfo_Annotation { - return GeneratedCodeInfo_Annotation.fromPartial(base ?? {}); + return GeneratedCodeInfo_Annotation.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): GeneratedCodeInfo_Annotation { const message = createBaseGeneratedCodeInfo_Annotation(); message.path = object.path?.map((e) => e) || []; diff --git a/google/protobuf/timestamp.ts b/google/protobuf/timestamp.ts index 7ec3770..84ac520 100644 --- a/google/protobuf/timestamp.ts +++ b/google/protobuf/timestamp.ts @@ -173,9 +173,8 @@ export const Timestamp = { }, create, I>>(base?: I): Timestamp { - return Timestamp.fromPartial(base ?? {}); + return Timestamp.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): Timestamp { const message = createBaseTimestamp(); message.seconds = (object.seconds !== undefined && object.seconds !== null) diff --git a/package-lock.json b/package-lock.json index 84472f3..13dbb02 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cheqd/ts-proto", - "version": "3.2.3-develop.1", + "version": "3.2.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cheqd/ts-proto", - "version": "3.2.3-develop.1", + "version": "3.2.3", "license": "Apache-2.0", "dependencies": { "long": "^5.2.3", @@ -20,7 +20,7 @@ "@semantic-release/npm": "^10.0.4", "@semantic-release/release-notes-generator": "^11.0.4", "@types/long": "^5.0.0", - "@types/node": "^20.4.5", + "@types/node": "^20.4.6", "conventional-changelog-conventionalcommits": "^6.1.0", "loose-ts-check": "^2.0.0", "semantic-release": "^21.0.7", @@ -815,9 +815,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.4.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.5.tgz", - "integrity": "sha512-rt40Nk13II9JwQBdeYqmbn2Q6IVTA5uPhvSO+JVqdXw/6/4glI6oR9ezty/A9Hg5u7JH4OmYmuQ+XvjKm0Datg==" + "version": "20.4.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.6.tgz", + "integrity": "sha512-q0RkvNgMweWWIvSMDiXhflGUKMdIxBo2M2tYM/0kEGDueQByFzK4KZAgu5YHGFNxziTlppNpTIBcqHQAxlfHdA==" }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -1807,13 +1807,13 @@ "dev": true }, "node_modules/handlebars": { - "version": "4.7.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", "dev": true, "dependencies": { "minimist": "^1.2.5", - "neo-async": "^2.6.0", + "neo-async": "^2.6.2", "source-map": "^0.6.1", "wordwrap": "^1.0.0" }, diff --git a/package.json b/package.json index 88ba414..5667b11 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@semantic-release/npm": "^10.0.4", "@semantic-release/release-notes-generator": "^11.0.4", "@types/long": "^5.0.0", - "@types/node": "^20.4.5", + "@types/node": "^20.4.6", "conventional-changelog-conventionalcommits": "^6.1.0", "loose-ts-check": "^2.0.0", "semantic-release": "^21.0.7",