chore: format files using prettier (#7364)

* chore: format files using prettier

* chore: api server files formatted
This commit is contained in:
sriram veeraghanta 2025-07-08 20:41:11 +05:30 committed by GitHub
parent 0225d806cc
commit 6ce700fd5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
149 changed files with 1518 additions and 919 deletions

View file

@ -12,4 +12,3 @@ import * as WebSocketDecorators from "./websocket";
// Named namespace exports
export const Rest = RestDecorators;
export const WebSocketNS = WebSocketDecorators;

View file

@ -21,13 +21,13 @@ export function Controller(baseRoute: string = ""): ClassDecorator {
* @returns Method decorator
*/
function createHttpMethodDecorator(
method: RestMethod
method: RestMethod,
): (route: string) => MethodDecorator {
return function (route: string): MethodDecorator {
return function (
target: object,
propertyKey: string | symbol,
descriptor: PropertyDescriptor
descriptor: PropertyDescriptor,
) {
Reflect.defineMetadata("method", method, target, propertyKey);
Reflect.defineMetadata("route", route, target, propertyKey);

View file

@ -10,12 +10,6 @@
"@/*": ["./src/*"]
}
},
"include": [
"./src"
],
"exclude": [
"dist",
"build",
"node_modules"
]
"include": ["./src"],
"exclude": ["dist", "build", "node_modules"]
}

View file

@ -1,12 +1,12 @@
import { defineConfig } from 'tsup';
import { defineConfig } from "tsup";
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
entry: ["src/index.ts"],
format: ["esm", "cjs"],
dts: true,
splitting: false,
sourcemap: true,
clean: true,
external: ['express', 'ws'],
external: ["express", "ws"],
treeshake: true,
});
});