🔧 Update current-user decorator typings
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f5dc54e306
commit
7e73fda8ea
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
|
||||
import type { AuthUser } from './types.js';
|
||||
|
||||
export type { AuthUser } from './types.js';
|
||||
|
||||
export const CurrentUser = createParamDecorator(
|
||||
(data: keyof AuthUser | undefined, ctx: ExecutionContext) => {
|
||||
const request = ctx.switchToHttp().getRequest();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue