Skip to content

Commit d145613

Browse files
committed
code format
1 parent 1b864be commit d145613

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/decorators.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {ResultTypes} from "./metadata/types/ResultTypes";
1414
*
1515
* @param namespace Namespace in which this controller's events will be registered.
1616
*/
17-
export function SocketController(namespace?: string|RegExp) {
17+
export function SocketController(namespace?: string | RegExp) {
1818
return function (object: Function) {
1919
const metadata: SocketControllerMetadataArgs = {
2020
namespace: namespace,
@@ -104,7 +104,7 @@ export function SocketIO() {
104104
/**
105105
* Injects received message body.
106106
*/
107-
export function MessageBody(options?: { classTransformOptions?: ClassTransformOptions }) {
107+
export function MessageBody(options?: {classTransformOptions?: ClassTransformOptions}) {
108108
return function (object: Object, methodName: string, index: number) {
109109
let format = (Reflect as any).getMetadata("design:paramtypes", object, methodName)[index];
110110
const metadata: ParamMetadataArgs = {
@@ -226,7 +226,7 @@ export function SocketRooms() {
226226
/**
227227
* Registers a new middleware to be registered in the socket.io.
228228
*/
229-
export function Middleware(options?: { priority?: number }): Function {
229+
export function Middleware(options?: {priority?: number}): Function {
230230
return function (object: Function) {
231231
const metadata: MiddlewareMetadataArgs = {
232232
target: object,
@@ -241,7 +241,7 @@ export function Middleware(options?: { priority?: number }): Function {
241241
* It will emit message only if controller succeed without errors.
242242
* If result is a Promise then it will wait until promise is resolved and emit a message.
243243
*/
244-
export function EmitOnSuccess(messageName: string, options?: { classTransformOptions?: ClassTransformOptions }): Function {
244+
export function EmitOnSuccess(messageName: string, options?: {classTransformOptions?: ClassTransformOptions}): Function {
245245
return function (object: Object, methodName: string) {
246246
const metadata: ResultMetadataArgs = {
247247
target: object.constructor,
@@ -259,7 +259,7 @@ export function EmitOnSuccess(messageName: string, options?: { classTransformOpt
259259
* It will emit message only if controller throw an exception.
260260
* If result is a Promise then it will wait until promise throw an error and emit a message.
261261
*/
262-
export function EmitOnFail(messageName: string, options?: { classTransformOptions?: ClassTransformOptions }): Function {
262+
export function EmitOnFail(messageName: string, options?: {classTransformOptions?: ClassTransformOptions}): Function {
263263
return function (object: Object, methodName: string) {
264264
const metadata: ResultMetadataArgs = {
265265
target: object.constructor,

src/metadata/args/SocketControllerMetadataArgs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export interface SocketControllerMetadataArgs {
1111
/**
1212
* Extra namespace in which this controller's events will be registered.
1313
*/
14-
namespace?: string|RegExp;
14+
namespace?: string | RegExp;
1515

1616
}

0 commit comments

Comments
 (0)