Skip to content

Commit

Permalink
fix(*): exporting all types to the index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
thekeogh committed Jan 4, 2024
1 parent a28ef87 commit 4271f7d
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/factory/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Adaptable, Closure } from "@src/types.js";

import { Queries } from "@factory/queries/index.js";

export class Actions<T> {
export class Actions<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import deepmerge from "deepmerge";

import { Adaptable, Closure } from "@src/types.js";

export class All<T> {
export class All<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/any.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import deepmerge from "deepmerge";

import { Adaptable, Closure } from "@src/types.js";

export class Any<T> {
export class Any<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/at.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import deepmerge from "deepmerge";

import { Adaptable, Closure } from "@src/types.js";

export class At<T> {
export class At<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/between.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import deepmerge from "deepmerge";

import { Adaptable, Closure } from "@src/types.js";

export class Between<T> {
export class Between<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import remove from "lodash.remove";

import { Adaptable, Closure } from "@src/types.js";

export class By<T> {
export class By<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/first.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import deepmerge from "deepmerge";

import { Adaptable, Closure } from "@src/types.js";

export class First<T> {
export class First<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { First } from "@factory/queries/first.js";
import { Last } from "@factory/queries/last.js";
import { Pick } from "@factory/queries/pick.js";

export class Queries<T> {
export class Queries<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/last.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import deepmerge from "deepmerge";

import { Adaptable, Closure } from "@src/types.js";

export class Last<T> {
export class Last<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
2 changes: 1 addition & 1 deletion src/factory/queries/pick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import deepmerge from "deepmerge";

import { Adaptable, Closure } from "@src/types.js";

export class Pick<T> {
export class Pick<T = Record<string, any>> {
/**
* Central storage for data, inherited from the main Factory instance.
*
Expand Down
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
export { Actions } from "@factory/actions/index.js";
export { All } from "@factory/queries/all.js";
export { Any } from "@factory/queries/any.js";
export { At } from "@factory/queries/at.js";
export { Between } from "@factory/queries/between.js";
export { By } from "@factory/queries/by.js";
export { Factory } from "@factory";
export { First } from "@factory/queries/first.js";
export { Last } from "@factory/queries/last.js";
export { Pick } from "@factory/queries/pick.js";
export { Queries } from "@factory/queries/index.js";
export * from "@types";

0 comments on commit 4271f7d

Please sign in to comment.