@aeriajs/common 0.0.1 → 0.0.2

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.
@@ -1 +1 @@
1
- export declare const arraysIntersects: <T extends string[]>(subject: string | T, arr: T | undefined) => boolean;
1
+ export declare const arraysIntersects: <T extends string[]>(subject: T | string, arr: T | undefined) => boolean;
package/dist/http.d.ts CHANGED
@@ -15,6 +15,6 @@ export declare const defaultRequestTransformer: (url: string, payload: any, para
15
15
  export declare const defaultResponseTransformer: (response: Awaited<ReturnType<typeof fetch>>) => Promise<Response & {
16
16
  data: any;
17
17
  }>;
18
- export declare const request: <Return = any>(url: string, payload?: any, config?: RequestConfig<Return> | undefined) => Promise<Response & {
18
+ export declare const request: <Return = any>(url: string, payload?: any, config?: RequestConfig<Return>) => Promise<Response & {
19
19
  data: any;
20
20
  }>;
package/dist/schema.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type Property, type ObjectToSchema } from '@aeriajs/types';
2
- export declare const fromLiteral: <const TObject, TRequired extends (keyof TObject & string)[]>(object: TObject, required?: TRequired | undefined) => ObjectToSchema<TObject, TRequired>;
2
+ export declare const fromLiteral: <const TObject, TRequired extends (keyof TObject & string)[]>(object: TObject, required?: TRequired) => ObjectToSchema<TObject, TRequired>;
3
3
  export declare const leftSchema: <const TObject extends Property>(object: TObject) => {
4
4
  type: "object";
5
5
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/common",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -27,7 +27,7 @@
27
27
  }
28
28
  },
29
29
  "peerDependencies": {
30
- "@aeriajs/types": "^0.0.0",
30
+ "@aeriajs/types": "^0.0.1",
31
31
  "bson": "^5.4.0"
32
32
  },
33
33
  "scripts": {