Skip to content

Commit

Permalink
docs(classes): add more comments to AutoMap decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Apr 9, 2021
1 parent 75a16b4 commit b00a01c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/classes/src/lib/decorators/automap.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ export function AutoMap(
depth?: number
): PropertyDecorator;
/**
* AutoMap decorator to decorate fields in classes to store metadata of that field
* AutoMap decorator to decorate fields in classes to store metadata of that field with a config object
*
* @param {AutoMapOptions} config
*/
export function AutoMap(config: AutoMapOptions): PropertyDecorator;
/**
* AutoMap decorator to decorate fields in classes to store metadata.
*/
export function AutoMap(): PropertyDecorator;
export function AutoMap(
typeFnOrConfig?: AutoMapOptions | (() => Constructible),
Expand Down

0 comments on commit b00a01c

Please sign in to comment.