Hello, I'm new to Typescript and am working on a community project using it. I created a custom decorator for my server endpoints using the NestJS docs as reference, and I can't figure out how to fix these unsafe assignment of any typed value errors. Screenshots included.
export const Author = createParamDecorator<string>(
(data: string, ctx: ExecutionContext) => {
const request = ctx.switchToHttp().getRequest();
const author = request.author;
return data ? author?.[data] : author;
}
);```