proto.io 0.0.157 → 0.0.158

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.
@@ -102,7 +102,9 @@ type PropertyMap<T, O, A> = {
102
102
  type TExtensions<E> = {
103
103
  [K in keyof E]: PropertyMap<E[K], _TObjectType<K>, '*' extends keyof E ? Omit<E['*'], keyof E[K]> : {}>;
104
104
  };
105
- type TMethods<K, E> = K extends keyof E ? '*' extends keyof E ? PropertyMapToMethods<Omit<E['*'], keyof E[K]> & E[K]> : PropertyMapToMethods<E[K]> : {};
105
+ type _TMethods<K, E> = K extends keyof E ? '*' extends keyof E ? PropertyMapToMethods<Omit<E['*'], keyof E[K]> & E[K]> : PropertyMapToMethods<E[K]> : {};
106
+ type IfAny<T, Y, N> = 0 extends (1 & T) ? Y : N;
107
+ type TMethods<K, E> = IfAny<E, {}, _TMethods<K, E>>;
106
108
  type TObjectType<K, E> = _TObjectType<K> & TMethods<K, E>;
107
109
  declare const TUpdateOpKeys: readonly ["$set", "$inc", "$dec", "$mul", "$div", "$max", "$min", "$addToSet", "$push", "$removeAll", "$popFirst", "$popLast"];
108
110
  type TUpdateOp = ExactOneProp<Record<(typeof TUpdateOpKeys)[number], TValue>>;
@@ -715,4 +717,4 @@ declare class ProtoService<Ext = any> extends ProtoType<Ext> {
715
717
  }
716
718
 
717
719
  export { type TFileInfo as A, type DeserializeOptions as D, type ExtraOptions as E, type FindOptions as F, type InsertOptions as I, ProtoService as P, QuerySelector as Q, type RelationOptions as R, type SerializeOptions as S, TSchema as T, type _TValue as _, type ProtoServiceOptions as a, type ProtoServiceKeyOptions as b, type TFileStorage as c, type TSerializable as d, deserialize as e, type TExtensions as f, TQuery as g, TObject as h, TUser as i, TRole as j, TFile as k, ProtoType as l, type TObjectType as m, type EventData as n, type DecodedQuery as o, type DecodedSortOption as p, type TValue as q, type FindOneOptions as r, serialize as s, type TUpdateOp as t, FieldSelectorExpression as u, QueryExpression as v, type TStorage as w, type TransactionOptions as x, type TQueryRandomOptions as y, type TPubSub as z };
718
- //# sourceMappingURL=index-Bb9jyfQC.d.ts.map
720
+ //# sourceMappingURL=index-CXPH5Pup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CXPH5Pup.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { f as TExtensions, g as TQuery, h as TObject, i as TUser, j as TRole, k as TFile, E as ExtraOptions, S as SerializeOptions, l as ProtoType, _ as _TValue, d as TSerializable, m as TObjectType, T as TSchema, n as EventData } from './index-Bb9jyfQC.js';
1
+ import { f as TExtensions, g as TQuery, h as TObject, i as TUser, j as TRole, k as TFile, E as ExtraOptions, S as SerializeOptions, l as ProtoType, _ as _TValue, d as TSerializable, m as TObjectType, T as TSchema, n as EventData } from './index-CXPH5Pup.js';
2
2
  import * as _o2ter_utils_js from '@o2ter/utils-js';
3
3
  import * as socket_io_client from 'socket.io-client';
4
4
  import * as _socket_io_component_emitter from '@socket.io/component-emitter';
@@ -58,4 +58,4 @@ declare class ProtoClient<Ext = any> extends ProtoType<Ext> {
58
58
  }
59
59
 
60
60
  export { ProtoClient as P, isObject as a, isUser as b, classExtends as c, isRole as d, isFile as e, isQuery as i };
61
- //# sourceMappingURL=index-DbUghBO0.d.ts.map
61
+ //# sourceMappingURL=index-sFLwlp-C.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-sFLwlp-C.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto.io",
3
- "version": "0.0.157",
3
+ "version": "0.0.158",
4
4
  "main": "dist/index",
5
5
  "module": "dist/index",
6
6
  "types": "dist/index",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-Bb9jyfQC.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DbUghBO0.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-dkBoWkei.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}