mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-30 12:27:39 +03:00
feat!(): add custom execution context
This commit is contained in:
8
sample/common/pipes/reverse-text.pipe.ts
Normal file
8
sample/common/pipes/reverse-text.pipe.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Injectable, PipeTransform } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class ReverseTextPipe implements PipeTransform {
|
||||
transform(value: string): string {
|
||||
return value.split('').reverse().join('');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user