@luminix/core 0.0.1-beta.2 → 0.0.1-beta.3

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.
Files changed (69) hide show
  1. package/package.json +1 -1
  2. package/vite.config.js +5 -3
  3. package/dist/contracts/Builder.d.ts +0 -50
  4. package/dist/contracts/Collection.d.ts +0 -191
  5. package/dist/contracts/ModelCollection.d.ts +0 -9
  6. package/dist/contracts/Plugin.d.ts +0 -8
  7. package/dist/contracts/PropertyBag.d.ts +0 -21
  8. package/dist/contracts/Relation/BelongsTo.d.ts +0 -20
  9. package/dist/contracts/Relation/BelongsToMany.d.ts +0 -31
  10. package/dist/contracts/Relation/HasMany.d.ts +0 -21
  11. package/dist/contracts/Relation/HasOne.d.ts +0 -15
  12. package/dist/contracts/Relation/HasOneOrMany.d.ts +0 -10
  13. package/dist/contracts/Relation/MorphMany.d.ts +0 -21
  14. package/dist/contracts/Relation/MorphOne.d.ts +0 -15
  15. package/dist/contracts/Relation/MorphOneOrMany.d.ts +0 -10
  16. package/dist/contracts/Relation/MorphTo.d.ts +0 -8
  17. package/dist/contracts/Relation/MorphToMany.d.ts +0 -16
  18. package/dist/contracts/Relation.d.ts +0 -44
  19. package/dist/exceptions/AttributeNotFillableException.d.ts +0 -4
  20. package/dist/exceptions/FacadeNotFoundException.d.ts +0 -4
  21. package/dist/exceptions/MethodNotImplementedException.d.ts +0 -4
  22. package/dist/exceptions/ModelInvalidRelatedTypeException.d.ts +0 -4
  23. package/dist/exceptions/ModelNotFoundException.d.ts +0 -4
  24. package/dist/exceptions/ModelNotPersistedException.d.ts +0 -4
  25. package/dist/exceptions/ModelWithoutPrimaryKeyException.d.ts +0 -4
  26. package/dist/exceptions/NoEmbedException.d.ts +0 -4
  27. package/dist/exceptions/NoInverseRelationException.d.ts +0 -4
  28. package/dist/exceptions/NotModelException.d.ts +0 -4
  29. package/dist/exceptions/NotReducibleException.d.ts +0 -4
  30. package/dist/exceptions/ReducerOverrideException.d.ts +0 -4
  31. package/dist/exceptions/RouteNotFoundException.d.ts +0 -4
  32. package/dist/exceptions/UnsupportedRelationException.d.ts +0 -4
  33. package/dist/facades/App.d.ts +0 -31
  34. package/dist/facades/Auth.d.ts +0 -14
  35. package/dist/facades/Error.d.ts +0 -15
  36. package/dist/facades/Log.d.ts +0 -14
  37. package/dist/facades/Model.d.ts +0 -42
  38. package/dist/facades/Route.d.ts +0 -32
  39. package/dist/helpers/app.d.ts +0 -5
  40. package/dist/helpers/auth.d.ts +0 -3
  41. package/dist/helpers/collect.d.ts +0 -1
  42. package/dist/helpers/config.d.ts +0 -5
  43. package/dist/helpers/error.d.ts +0 -4
  44. package/dist/helpers/log.d.ts +0 -5
  45. package/dist/helpers/model.d.ts +0 -6
  46. package/dist/helpers/route.d.ts +0 -5
  47. package/dist/index.d.ts +0 -24
  48. package/dist/mixins/BaseModel.d.ts +0 -5
  49. package/dist/mixins/HasEvents.d.ts +0 -16
  50. package/dist/mixins/Reducible.d.ts +0 -17
  51. package/dist/support/collection.d.ts +0 -4
  52. package/dist/support/model.d.ts +0 -3
  53. package/dist/support/reader.d.ts +0 -2
  54. package/dist/support/searchParams.d.ts +0 -1
  55. package/dist/types/App.d.ts +0 -72
  56. package/dist/types/Auth.d.ts +0 -13
  57. package/dist/types/Builder.d.ts +0 -47
  58. package/dist/types/Collection.d.ts +0 -1804
  59. package/dist/types/Config.d.ts +0 -29
  60. package/dist/types/Error.d.ts +0 -31
  61. package/dist/types/Event.d.ts +0 -14
  62. package/dist/types/Log.d.ts +0 -37
  63. package/dist/types/Model.d.ts +0 -165
  64. package/dist/types/Plugin.d.ts +0 -4
  65. package/dist/types/PropertyBag.d.ts +0 -25
  66. package/dist/types/Reducer.d.ts +0 -17
  67. package/dist/types/Relation.d.ts +0 -30
  68. package/dist/types/Route.d.ts +0 -22
  69. package/dist/types/Support.d.ts +0 -7
@@ -1,31 +0,0 @@
1
- import { AppFacades, AppFacade, AppEvents } from '../types/App';
2
- import { default as Plugin } from '../contracts/Plugin';
3
- import { AppConfiguration } from '../types/Config';
4
- import { Unsubscribe } from 'nanoevents';
5
-
6
- declare class App implements AppFacade {
7
- private facades;
8
- private booted;
9
- private _plugins;
10
- make(): AppFacades;
11
- make<K extends keyof AppFacades>(key: K): AppFacades[K];
12
- has(key: string): boolean;
13
- bind<K extends keyof AppFacades>(key: K, facade: AppFacades[K]): void;
14
- plugins(): Plugin[];
15
- boot(configObject?: AppConfiguration): Promise<AppFacades>;
16
- on<E extends keyof AppEvents>(_: E, __: AppEvents[E]): Unsubscribe;
17
- once<E extends keyof AppEvents>(_: E, __: AppEvents[E]): void;
18
- emit<E extends keyof AppEvents>(_: E, __?: Omit<Parameters<AppEvents[E]>[0], 'source'>): void;
19
- }
20
- declare const _default: {
21
- new (...args: any[]): {
22
- "__#1@#emitter": import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
23
- "__#1@#createNanoEvents"(): import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
24
- on<E extends keyof AppEvents>(event: E, callback: AppEvents[E]): Unsubscribe;
25
- once<E_1 extends keyof AppEvents>(event: E_1, callback: AppEvents[E_1]): void;
26
- emit<E_2 extends keyof AppEvents>(event: E_2, data?: Omit<Parameters<AppEvents[E_2]>[0], "source">): void;
27
- [Symbol.toStringTag]: string;
28
- };
29
- name: string;
30
- } & typeof App;
31
- export default _default;
@@ -1,14 +0,0 @@
1
- import { AppFacade } from '../types/App';
2
- import { AuthCredentials, AuthFacade } from '../types/Auth';
3
- import { Model } from '../types/Model';
4
-
5
- export default class Auth implements AuthFacade {
6
- private readonly app;
7
- private _user;
8
- constructor(app: AppFacade);
9
- attempt(credentials: AuthCredentials, remember?: boolean, onSubmit?: (e: Event) => void): void;
10
- check(): boolean;
11
- logout(onSubmit?: (e: Event) => void): void;
12
- user(): Model | null;
13
- id(): number | string | null;
14
- }
@@ -1,15 +0,0 @@
1
- import { default as PropertyBag } from '../contracts/PropertyBag';
2
- import { ErrorFacade, ValidationError } from '../types/Error';
3
-
4
- export declare const isValidationError: (error: unknown) => error is ValidationError;
5
- declare class Error implements ErrorFacade {
6
- private bags;
7
- constructor();
8
- bag(name?: string): PropertyBag<Record<string, string>>;
9
- add(key: string, value: string, bag?: string): void;
10
- set(errors: Record<string, string>, bag?: string): void;
11
- all(bag?: string): Record<string, string>;
12
- get(key: string, bag?: string): string | null;
13
- clear(bag?: string): void;
14
- }
15
- export default Error;
@@ -1,14 +0,0 @@
1
- import { LogFacade } from '../types/Log';
2
-
3
- export default class Log implements LogFacade {
4
- private _debug;
5
- constructor(_debug: boolean);
6
- emergency(...args: any[]): void;
7
- alert(...args: any[]): void;
8
- critical(...args: any[]): void;
9
- error(...args: any[]): void;
10
- warning(...args: any[]): void;
11
- notice(...args: any[]): void;
12
- info(...args: any[]): void;
13
- debug(...args: any[]): void;
14
- }
@@ -1,42 +0,0 @@
1
- import { ModelSchema, ModelSchemaAttributes, Model } from '../types/Model';
2
- import { AppFacade, GlobalModelEvents, ModelFacade as ModelFacadeInterface } from '../types/App';
3
- import { Unsubscribe } from 'nanoevents';
4
- import { Reducer, ReducerCallback, Unsubscribe as UnsubscribeReducer } from '../types/Reducer';
5
- import { Collection } from '../contracts/Collection';
6
-
7
- declare class ModelFacade implements ModelFacadeInterface {
8
- private readonly _schema;
9
- private _models;
10
- static name: string;
11
- constructor(_schema: ModelSchema);
12
- boot(app: AppFacade): void;
13
- schema(): ModelSchema;
14
- schema(abstract: string): ModelSchemaAttributes;
15
- make(): {
16
- [abstract: string]: typeof Model;
17
- };
18
- make(abstract: string): typeof Model;
19
- toString(): string;
20
- on<K extends keyof GlobalModelEvents>(_: K, __: GlobalModelEvents[K]): Unsubscribe;
21
- once<K extends keyof GlobalModelEvents>(_: K, __: GlobalModelEvents[K]): void;
22
- emit<K extends keyof GlobalModelEvents>(_: K, __?: Omit<Parameters<GlobalModelEvents[K]>[0], 'source'>): void;
23
- reducer(_: string, __: ReducerCallback, ___?: number): UnsubscribeReducer;
24
- removeReducer(_: string): void;
25
- getReducer(_: string): Collection<Reducer>;
26
- hasReducer(_: string): boolean;
27
- clearReducer(_: string): void;
28
- flushReducers(): void;
29
- [reducer: string]: unknown;
30
- }
31
- declare const _default: {
32
- new (...args: any[]): {
33
- "__#1@#emitter": import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
34
- "__#1@#createNanoEvents"(): import('nanoevents').Emitter<import('../types/Event').EventSourceEvents>;
35
- on<E extends keyof GlobalModelEvents>(event: E, callback: GlobalModelEvents[E]): Unsubscribe;
36
- once<E_1 extends keyof GlobalModelEvents>(event: E_1, callback: GlobalModelEvents[E_1]): void;
37
- emit<E_2 extends keyof GlobalModelEvents>(event: E_2, data?: Omit<Parameters<GlobalModelEvents[E_2]>[0], "source">): void;
38
- [Symbol.toStringTag]: string;
39
- };
40
- name: string;
41
- } & typeof ModelFacade;
42
- export default _default;
@@ -1,32 +0,0 @@
1
- import { RouteDefinition, RouteTuple as RouteTuple, HttpMethod, RouteGenerator, RouteCallConfig } from '../types/Route';
2
- import { ErrorFacade } from '../types/Error';
3
-
4
- declare class Route {
5
- private routes;
6
- private error;
7
- private appUrl;
8
- constructor(routes: RouteDefinition, error: ErrorFacade, appUrl?: string);
9
- private isRouteTuple;
10
- private extractGenerator;
11
- get(name: string): RouteTuple;
12
- url(generator: RouteGenerator): string;
13
- methods(generator: RouteGenerator): HttpMethod[];
14
- exists(name: string): boolean;
15
- call(generator: RouteGenerator, config?: RouteCallConfig): Promise<import('axios').AxiosResponse<any, any>>;
16
- toString(): string;
17
- [reducer: string]: unknown;
18
- }
19
- declare const _default: {
20
- new (...args: any[]): {
21
- reducers: {
22
- [name: string]: import('../types/Collection').Collection<import('../types/Reducer').Reducer>;
23
- };
24
- reducer(name: string, callback: import('../types/Reducer').ReducerCallback, priority?: number): () => void;
25
- removeReducer(name: string, callback: import('../types/Reducer').ReducerCallback): void;
26
- getReducer(name: string): import('../types/Collection').Collection<import('../types/Reducer').Reducer>;
27
- hasReducer(name: string): boolean;
28
- clearReducer(name: string): void;
29
- flushReducers(): void;
30
- };
31
- } & typeof Route;
32
- export default _default;
@@ -1,5 +0,0 @@
1
- import { AppExternal, AppFacades } from '../types/App';
2
-
3
- declare function app(): AppExternal;
4
- declare function app<T extends keyof AppFacades>(facade: T): AppFacades[T];
5
- export default app;
@@ -1,3 +0,0 @@
1
- import { AuthFacade } from '../types/Auth';
2
-
3
- export default function (): AuthFacade;
@@ -1 +0,0 @@
1
- export default function collect<T = unknown>(items: T[]): import('../types/Collection').Collection<T>;
@@ -1,5 +0,0 @@
1
- import { ConfigFacade } from '../types/Config';
2
-
3
- declare function config(): ConfigFacade;
4
- declare function config(path: string, defaultValue?: unknown): unknown;
5
- export default config;
@@ -1,4 +0,0 @@
1
- import { ErrorFacade } from '../types/Error';
2
-
3
- export default function error(): ErrorFacade;
4
- export default function error(key: string, bag?: string): string | null;
@@ -1,5 +0,0 @@
1
- import { LogFacade } from '../types/Log';
2
-
3
- declare function log(): LogFacade;
4
- declare function log(...data: any[]): void;
5
- export default log;
@@ -1,6 +0,0 @@
1
- import { Model } from '../types/Model';
2
- import { ModelFacade } from '../types/App';
3
-
4
- declare function model(): ModelFacade;
5
- declare function model(abstract: string): typeof Model;
6
- export default model;
@@ -1,5 +0,0 @@
1
- import { RouteFacade, RouteReplacer } from '../types/Route';
2
-
3
- declare function route(): RouteFacade;
4
- declare function route(name: string, parameters?: RouteReplacer): string;
5
- export default route;
package/dist/index.d.ts DELETED
@@ -1,24 +0,0 @@
1
- import { default as app } from './helpers/app';
2
- import { default as auth } from './helpers/auth';
3
- import { default as collect } from './helpers/collect';
4
- import { default as config } from './helpers/config';
5
- import { default as error } from './helpers/error';
6
- import { default as log } from './helpers/log';
7
- import { default as model } from './helpers/model';
8
- import { default as route } from './helpers/route';
9
- import { isValidationError } from './facades/Error';
10
- import { default as Plugin } from './contracts/Plugin';
11
- import { default as PropertyBag } from './contracts/PropertyBag';
12
- import { isModel } from './support/model';
13
- import { isCollection } from './support/collection';
14
- import { Reducible } from './mixins/Reducible';
15
- import { HasEvents } from './mixins/HasEvents';
16
-
17
- export { app, auth, collect, config, error, log, model, route, isCollection, isValidationError, isModel, Plugin, PropertyBag, Reducible, HasEvents, };
18
- export type { AppFacade } from './types/App';
19
- export type { AuthFacade } from './types/Auth';
20
- export type { LogFacade } from './types/Log';
21
- export type { ReducibleInterface } from './types/Reducer';
22
- export type { RouteFacade } from './types/Route';
23
- export type { Model, BaseModel } from './types/Model';
24
- export type { EventSource } from './types/Event';
@@ -1,5 +0,0 @@
1
- import { BaseModel, Model as ModelInterface } from '../types/Model';
2
- import { AppFacades } from '../types/App';
3
-
4
- export declare function BaseModelFactory(facades: AppFacades, abstract: string): typeof BaseModel;
5
- export declare function ModelFactory(facades: AppFacades, abstract: string, CustomModel: typeof BaseModel): typeof ModelInterface;
@@ -1,16 +0,0 @@
1
- import { Emitter } from 'nanoevents';
2
- import { EventSourceEvents, EventSource } from '../types/Event';
3
- import { Constructor } from '../types/Support';
4
-
5
- export declare function isEventSource<T>(value: T): value is T & EventSource<any>;
6
- export declare function HasEvents<T extends EventSourceEvents, U extends Constructor>(Base: U): {
7
- new (...args: any[]): {
8
- "__#1@#emitter": Emitter<EventSourceEvents>;
9
- "__#1@#createNanoEvents"(): Emitter<EventSourceEvents>;
10
- on<E extends keyof T>(event: E, callback: T[E]): import('nanoevents').Unsubscribe;
11
- once<E_1 extends keyof T>(event: E_1, callback: T[E_1]): void;
12
- emit<E_2 extends keyof T>(event: E_2, data?: Omit<Parameters<T[E_2]>[0], "source">): void;
13
- [Symbol.toStringTag]: string;
14
- };
15
- name: string;
16
- } & U;
@@ -1,17 +0,0 @@
1
- import { ReducerCallback, Reducer } from '../types/Reducer';
2
- import { Constructor } from '../types/Support';
3
- import { Collection } from '../types/Collection';
4
-
5
- export declare function Reducible<T extends Constructor>(Base: T): {
6
- new (...args: any[]): {
7
- reducers: {
8
- [name: string]: Collection<Reducer>;
9
- };
10
- reducer(name: string, callback: ReducerCallback, priority?: number): () => void;
11
- removeReducer(name: string, callback: ReducerCallback): void;
12
- getReducer(name: string): Collection<Reducer>;
13
- hasReducer(name: string): boolean;
14
- clearReducer(name: string): void;
15
- flushReducers(): void;
16
- };
17
- } & T;
@@ -1,4 +0,0 @@
1
- import { Collection } from '../types/Collection';
2
-
3
- export declare function cartesian<T>(...arrays: T[][]): T[][];
4
- export declare function isCollection(instance: unknown): instance is Collection;
@@ -1,3 +0,0 @@
1
- import { Model } from '../types/Model';
2
-
3
- export declare function isModel(value: unknown): value is Model;
@@ -1,2 +0,0 @@
1
- declare const reader: (name: string, type?: 'data' | 'error') => any;
2
- export default reader;
@@ -1 +0,0 @@
1
- export declare const createMergedSearchParams: (...urls: string[]) => URLSearchParams;
@@ -1,72 +0,0 @@
1
- import { AppConfiguration, ConfigFacade } from './Config';
2
- import { PluginInterface } from './Plugin';
3
- import { LogFacade } from './Log';
4
- import { AuthFacade } from './Auth';
5
- import { BaseModel, Model, ModelSchema, ModelSchemaAttributes } from './Model';
6
- import { RouteFacade } from './Route';
7
- import { EventSource, Event } from './Event';
8
- import { ErrorFacade } from './Error';
9
- import { ReducibleInterface } from './Reducer';
10
-
11
- type Plugin = PluginInterface<AppFacade, AppFacades>;
12
- export type GlobalModelEvents = {
13
- 'save': (e: ModelGlobalEvent) => void;
14
- 'delete': (e: ModelGlobalEvent) => void;
15
- 'restore': (e: ModelGlobalEvent) => void;
16
- 'create': (e: ModelGlobalEvent) => void;
17
- 'update': (e: ModelGlobalEvent) => void;
18
- 'fetch': (e: ModelGlobalEvent) => void;
19
- 'error': (e: ModelGlobalErrorEvent) => void;
20
- };
21
- export type ModelGlobalEvent = Event<ModelFacade> & {
22
- class: string;
23
- model: BaseModel;
24
- force?: boolean;
25
- };
26
- export type ModelGlobalErrorEvent = ModelGlobalEvent & {
27
- error: unknown;
28
- operation: 'save' | 'delete' | 'restore' | 'forceDelete';
29
- };
30
- export type ModelFacade = EventSource<GlobalModelEvents> & ReducibleInterface & {
31
- schema(): ModelSchema;
32
- schema(abstract: string): ModelSchemaAttributes;
33
- make(): Record<string, typeof Model>;
34
- make(abstract: string): typeof Model;
35
- boot(app: AppFacade): void;
36
- };
37
- export type AppEvents = {
38
- 'init': (e: InitEvent) => void;
39
- 'booted': (e: Event<AppFacade>) => void;
40
- 'booting': (e: Event<AppFacade>) => void;
41
- };
42
- export type InitEvent = Event<AppFacade> & {
43
- register(plugin: Plugin): void;
44
- };
45
- export type AppExternal = {
46
- boot: (config?: AppConfiguration) => Promise<AppFacades>;
47
- make(): AppFacades;
48
- make<T extends keyof AppFacades>(key: T): AppFacades[T];
49
- plugins: () => Plugin[];
50
- on: EventSource<AppEvents>['once'];
51
- };
52
- export type AppFacade = AppExternal & {
53
- has(key: string): boolean;
54
- bind<T extends keyof AppFacades>(key: T, facade: AppFacades[T]): void;
55
- emit: EventSource<AppEvents>['emit'];
56
- once: EventSource<AppEvents>['once'];
57
- on: EventSource<AppEvents>['on'];
58
- };
59
- export type AppFacades = {
60
- auth: AuthFacade;
61
- config: ConfigFacade;
62
- error: ErrorFacade;
63
- log: LogFacade;
64
- model: ModelFacade;
65
- route: RouteFacade;
66
- [key: string]: any;
67
- };
68
- export type BootOptions = {
69
- config?: AppConfiguration;
70
- skipBootRequest?: boolean;
71
- };
72
- export {};
@@ -1,13 +0,0 @@
1
- import { Model } from './Model';
2
-
3
- export type AuthCredentials = {
4
- email: string;
5
- password: string;
6
- };
7
- export type AuthFacade = {
8
- attempt(credentials: AuthCredentials, remember: boolean, onSubmit?: (e: Event) => void): void;
9
- check(): boolean;
10
- logout(onSubmit?: (e: Event) => void): void;
11
- user(): Model | null;
12
- id(): number | string | null;
13
- };
@@ -1,47 +0,0 @@
1
- import { default as PropertyBag } from '../contracts/PropertyBag';
2
- import { Event, EventSource } from './Event';
3
- import { JsonObject, JsonValue } from './Support';
4
- import { Operator, Collection } from './Collection';
5
- import { PropertyBagEventMap } from './PropertyBag';
6
-
7
- export type Scope<R, C> = (builder: BuilderInterface<R, C>) => BuilderInterface<R, C> | void;
8
- export type ExtendedOperator = Operator | 'like' | 'notLike' | 'between' | 'notBetween' | 'isNull' | 'isNotNull';
9
- export type BuilderInterface<R, C> = EventSource<BuilderEventMap<R, C>> & {
10
- lock(path: string): void;
11
- where(scope: Scope<R, C>): BuilderInterface<R, C>;
12
- where(key: string, value: JsonValue): BuilderInterface<R, C>;
13
- where(key: string, operator: ExtendedOperator, value: JsonValue): BuilderInterface<R, C>;
14
- where(key: string | Scope<R, C>, operatorOrValue?: ExtendedOperator | JsonValue, value?: JsonValue): BuilderInterface<R, C>;
15
- whereNull(key: string): BuilderInterface<R, C>;
16
- whereNotNull(key: string): BuilderInterface<R, C>;
17
- whereBetween(key: string, value: [JsonValue, JsonValue]): BuilderInterface<R, C>;
18
- whereNotBetween(key: string, value: [JsonValue, JsonValue]): BuilderInterface<R, C>;
19
- orderBy(column: string, direction?: 'asc' | 'desc'): BuilderInterface<R, C>;
20
- searchBy(term: string): BuilderInterface<R, C>;
21
- minified(): BuilderInterface<R, C>;
22
- limit(value: number): BuilderInterface<R, C>;
23
- get(page?: number, replaceLinksWith?: string): Promise<C>;
24
- all(): Promise<Collection<R>>;
25
- first(): Promise<R | null>;
26
- find(id: string | number): Promise<R | null>;
27
- unset(key: string): BuilderInterface<R, C>;
28
- };
29
- export type BuilderEventMap<R, C> = PropertyBagEventMap & {
30
- 'change': (e: BuilderChangeEvent<R, C>) => void;
31
- 'submit': (e: BuilderSubmitEvent<R, C>) => void;
32
- 'success': (e: BuilderSuccessEvent<R, C>) => void;
33
- 'error': (e: BuilderErrorEvent<R, C>) => void;
34
- };
35
- export type BuilderChangeEvent<R, C> = Event<BuilderInterface<R, C>> & {
36
- data: PropertyBag<JsonObject>;
37
- };
38
- export type BuilderSubmitEvent<R, C> = Event<BuilderInterface<R, C>> & {
39
- data: PropertyBag<JsonObject>;
40
- };
41
- export type BuilderSuccessEvent<R, C> = Event<BuilderInterface<R, C>> & {
42
- response: C;
43
- items: Collection<R> | R | null;
44
- };
45
- export type BuilderErrorEvent<R, C> = Event<BuilderInterface<R, C>> & {
46
- error: unknown;
47
- };