# Name Decorator jsonMapper schema property
Module | import { Name } from "@tsed/common" |
---|---|
Source | /packages/common/src/jsonschema/decorators/propertyName.ts |
# Overview
function Name(name: string): PropertyDecorator;
# Description
Create an alias of the propertyKey that must be used by the converter.
TIP
This decorator is used by the Converters to deserialize correctly you model.
# Example
class Model {
@Name(String)
property: string[];
}
1
2
3
4
2
3
4
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing