Skip to content

Commit

Permalink
feat(common): Add documentation for public API
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbiundo authored and BrunnerLivio committed Aug 26, 2019
1 parent 9c1ec0d commit 2ee5a99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/common/decorators/core/controller.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export interface ControllerOptions extends ScopeOptions {
path?: string;
}

export function Controller();
export function Controller(prefix: string);
export function Controller(options: ControllerOptions);
/**
* Decorator that marks a class as a Nest controller that can receive inbound
* requests and produce responses.
Expand Down
1 change: 0 additions & 1 deletion packages/common/decorators/core/inject.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { isFunction, isUndefined } from '../../utils/shared.utils';
*
* @publicApi
*/

export function Inject<T = any>(token?: T) {
return (target: Object, key: string | symbol, index?: number) => {
token = token || Reflect.getMetadata('design:type', target, key);
Expand Down
1 change: 0 additions & 1 deletion packages/common/decorators/http/route-params.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ export const UploadedFile: (
export const UploadedFiles: () => ParameterDecorator = createRouteParamDecorator(
RouteParamtypes.FILES,
);

/**
* Route handler parameter decorator. Extracts the `headers`
* property from the `req` object and populates the decorated
Expand Down

0 comments on commit 2ee5a99

Please sign in to comment.