@m1212e/rumble 0.23.4 → 0.23.7

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/out/index.d.mts CHANGED
@@ -4800,11 +4800,23 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
4800
4800
  query: <TableName_1 extends keyof DrizzleQueryFunction<DB>>({
4801
4801
  table,
4802
4802
  readAction,
4803
- listAction
4803
+ listAction,
4804
+ findFirst,
4805
+ findMany
4804
4806
  }: {
4805
4807
  table: TableName_1;
4806
4808
  readAction?: Action | undefined;
4807
4809
  listAction?: Action | undefined;
4810
+ findMany?: ((p: {
4811
+ tx: DB | Parameters<Parameters<DB["transaction"]>[0]>[0];
4812
+ filter: Parameters<DrizzleQueryFunction<DB>[TableName_1]["findMany"]>[0];
4813
+ queryArgs: Parameters<DrizzleQueryFunction<DB>[TableName_1]["findMany"]>[0];
4814
+ }) => ReturnType<DrizzleQueryFunction<DB>[TableName_1]["findMany"]>) | undefined;
4815
+ findFirst?: ((p: {
4816
+ tx: DB;
4817
+ filter: Parameters<DrizzleQueryFunction<DB>[TableName_1]["findFirst"]>[0];
4818
+ queryArgs: Parameters<DrizzleQueryFunction<DB>[TableName_1]["findFirst"]>[0];
4819
+ }) => ReturnType<DrizzleQueryFunction<DB>[TableName_1]["findFirst"]>) | undefined;
4808
4820
  }) => void;
4809
4821
  /**
4810
4822
  * A function for creating a pubsub instance for a table. Use this to publish or subscribe events