@luminix/support 0.1.0-beta.0 → 0.1.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luminix/support",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.0-beta.1",
4
4
  "module": "dist/support.js",
5
5
  "types": "types/index.d.ts",
6
6
  "type": "module",
@@ -1,2 +1,9 @@
1
- export declare function parse(value: Date | string): Date;
2
- export declare function toDateTimeLocal(value: Date | string): string;
1
+ export declare class DateTimeMacros {
2
+ [x: string]: (...args: any[]) => any;
3
+ }
4
+ declare class DateTimeStatic {
5
+ parse(value: Date | string): Date;
6
+ toDateTimeLocal(value: Date | string): string;
7
+ }
8
+ declare const DateTime: DateTimeStatic & DateTimeMacros & import('./Mixins/Macroable').MacroableInterface<DateTimeMacros>;
9
+ export default DateTime;
package/types/Func.d.ts CHANGED
@@ -1,3 +1,10 @@
1
1
  import { DebouncedFunc, DebounceSettings, ThrottleSettings } from 'lodash-es';
2
- export declare function throttle<T extends (...args: any) => any>(func: T, wait?: number, options?: ThrottleSettings): DebouncedFunc<T>;
3
- export declare function debounce<T extends (...args: any) => any>(func: T, wait?: number, options?: DebounceSettings): DebouncedFunc<T>;
2
+ export declare class FuncMacros {
3
+ [x: string]: (...args: any[]) => any;
4
+ }
5
+ declare class FuncStatic {
6
+ throttle<T extends (...args: any) => any>(func: T, wait?: number, options?: ThrottleSettings): DebouncedFunc<T>;
7
+ debounce<T extends (...args: any) => any>(func: T, wait?: number, options?: DebounceSettings): DebouncedFunc<T>;
8
+ }
9
+ declare const Func: FuncStatic & FuncMacros & import('./Mixins/Macroable').MacroableInterface<FuncMacros>;
10
+ export default Func;
package/types/Query.d.ts CHANGED
@@ -1,4 +1,11 @@
1
1
  export type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=';
2
- export declare function fromObject(object: object): URLSearchParams;
3
- export declare function toObject(searchParams: URLSearchParams): Record<string, any>;
4
- export declare function merge(...parts: (string | URLSearchParams)[]): URLSearchParams;
2
+ export declare class QueryMacros {
3
+ [x: string]: (...args: any[]) => any;
4
+ }
5
+ declare class QueryStatic {
6
+ fromObject(object: object): URLSearchParams;
7
+ toObject(searchParams: URLSearchParams): Record<string, any>;
8
+ merge(...parts: (string | URLSearchParams)[]): URLSearchParams;
9
+ }
10
+ declare const Query: QueryStatic & QueryMacros & import('./Mixins/Macroable').MacroableInterface<QueryMacros>;
11
+ export default Query;
package/types/Str.d.ts CHANGED
@@ -1,18 +1,25 @@
1
- export declare function after(string: string, search: string): string;
2
- export declare function afterLast(string: string, search: string): string;
3
- export declare function before(string: string, search: string): string;
4
- export declare function beforeLast(string: string, search: string): string;
5
- export declare function camel(string: string): string;
6
- export declare function lcfirst(string: string): string;
7
- export declare function lower(string: string): string;
8
- export declare function kebab(string: string): string;
9
- export declare function padBoth(string: string, length: number, chars?: string): string;
10
- export declare function padLeft(string: string, length: number, chars?: string): string;
11
- export declare function padRight(string: string, length: number, chars?: string): string;
12
- export declare function readable(string: string): string;
13
- export declare function studly(string: string): string;
14
- export declare function snake(string: string): string;
15
- export declare function title(string: string): string;
16
- export declare function trim(string: string, chars?: string): string;
17
- export declare function ucfirst(string: string): string;
18
- export declare function upper(string: string): string;
1
+ export declare class StrMacros {
2
+ [x: string]: (...args: any[]) => any;
3
+ }
4
+ declare class StrStatic {
5
+ after(string: string, search: string): string;
6
+ afterLast(string: string, search: string): string;
7
+ before(string: string, search: string): string;
8
+ beforeLast(string: string, search: string): string;
9
+ camel(string: string): string;
10
+ lcfirst(string: string): string;
11
+ lower(string: string): string;
12
+ kebab(string: string): string;
13
+ padBoth(string: string, length: number, chars?: string): string;
14
+ padLeft(string: string, length: number, chars?: string): string;
15
+ padRight(string: string, length: number, chars?: string): string;
16
+ readable(string: string): string;
17
+ studly(string: string): string;
18
+ snake(string: string): string;
19
+ title(string: string): string;
20
+ trim(string: string, chars?: string): string;
21
+ ucfirst(string: string): string;
22
+ upper(string: string): string;
23
+ }
24
+ declare const Str: StrStatic & StrMacros & import('./Mixins/Macroable').MacroableInterface<StrMacros>;
25
+ export default Str;
package/types/index.d.ts CHANGED
@@ -13,15 +13,19 @@ import { default as Response } from './Http/Response';
13
13
  import { default as ServiceProvider } from './App/ServiceProvider';
14
14
  import { default as isValidationError } from './Http/Utils/isValidationError';
15
15
  import { default as Arr } from './Arr';
16
+ import { default as DateTime } from './DateTime';
17
+ import { default as Func } from './Func';
16
18
  import { default as Obj } from './Obj';
19
+ import { default as Query } from './Query';
20
+ import { default as Str } from './Str';
17
21
  import * as immer from 'immer';
18
- import * as DateTime from './DateTime';
19
- import * as Func from './Func';
20
- import * as Query from './Query';
21
- import * as Str from './Str';
22
22
  export { Application, Arr, Client, Collection, DateTime, EventSource, Func, isValidationError, Macroable, MakeFacade, Obj, PropertyBag, reader, Reducible, Request, Response, ServiceProvider, Query, Str, axios, immer, };
23
23
  export type { ArrMacros } from './Arr';
24
+ export type { DateTimeMacros } from './DateTime';
25
+ export type { FuncMacros } from './Func';
24
26
  export type { ObjMacros } from './Obj';
27
+ export type { QueryMacros } from './Query';
28
+ export type { StrMacros } from './Str';
25
29
  export type { ApplicationInterface, ApplicationEvents } from './App/Interfaces';
26
30
  export type { Event, EventMap, EventMapOf, EventsOf, EventCallbackOf } from './Contracts/EventSource';
27
31
  export type { RequestOptions } from './Http/Client';