Skip to content

Commit

Permalink
feat: expose plugin interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiq007 committed Feb 18, 2024
1 parent 83ebb0e commit fe798fa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EnumValuesUnion } from '../../utils/types/enum_values_union.type.ts';
import { HttpMethod } from '../../http/enums/http_method.enum.ts';
import { RouteOptions } from '../../router/interfaces/route_options.interface.ts';
import { RoutePath } from '../../router/types/route_path.type.ts';
import { RouteOptions } from '../interfaces/route_options.interface.ts';
import { RoutePath } from './route_path.type.ts';

export type AnonymousRoute = [
RoutePath,
Expand Down
2 changes: 1 addition & 1 deletion src/server/interfaces/module.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AnonymousRoute } from '../types/anonymous_route.type.ts';
import { AnonymousRoute } from '../../router/types/anonymous_route.type.ts';
import { Broadcaster } from '../../web_socket/broadcaster.class.ts';
import { Constructor } from '../../utils/interfaces/constructor.interface.ts';
import { Controller } from '../../router/controller.class.ts';
Expand Down
4 changes: 2 additions & 2 deletions src/server/interfaces/server_options.interface.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { AnonymousRoute } from '../types/anonymous_route.type.ts';
import { AnonymousRoute } from '../../router/types/anonymous_route.type.ts';
import { AppConfig } from '../../configurator/interfaces/app_config.interface.ts';
import { Broadcaster } from '../../web_socket/broadcaster.class.ts';
import { Constructor } from '../../utils/interfaces/constructor.interface.ts';
import { Controller } from '../../router/controller.class.ts';
import { DeepPartial } from '../../utils/types/deep_partial.type.ts';
import { Module } from '../interfaces/module.interface.ts';
import { Plugin } from './plugin.interface.ts';
import { Plugin } from '../../utils/interfaces/plugin.interface.ts';

export interface ServerOptions {
channels?: Constructor<Broadcaster>[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { AnonymousRoute } from '../types/anonymous_route.type.ts';
import { AnonymousRoute } from '../../router/types/anonymous_route.type.ts';
import { Broadcaster } from '../../web_socket/broadcaster.class.ts';
import { Constructor } from '../../utils/interfaces/constructor.interface.ts';
import { Constructor } from './constructor.interface.ts';
import { Controller } from '../../router/controller.class.ts';
import { Module } from '../interfaces/module.interface.ts';
import { Module } from '../../server/interfaces/module.interface.ts';

export interface Plugin {
channels?: Constructor<Broadcaster>[];
Expand Down
1 change: 1 addition & 0 deletions src/utils/utils.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './functions/$.function.ts';
export * from './interfaces/constructor.interface.ts';
export * from './interfaces/plugin.interface.ts';
export * from './reflector.class.ts';
export * from './types/class_decorator.type.ts';
export * from './types/method_decorator.type.ts';
Expand Down

0 comments on commit fe798fa

Please sign in to comment.