Skip to content

Commit

Permalink
chore: fix more @param comments in tsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed May 30, 2019
1 parent e13bcc7 commit 1f10f50
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/cli/lib/base-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ module.exports = class BaseGenerator extends Generator {

/**
* Override the base prompt to skip prompts with default answers
* @param questions One or more questions
* @param questions - One or more questions
*/
async prompt(questions) {
// Normalize the questions to be an array
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ const PREFIX = 'loopback4:';

/**
* Parse arguments and run corresponding command
* @param env Yeoman env
* @param env - Yeoman env
* @param {*} opts Command options
* @param log Log function
* @param dryRun flag for dryRun (for testing)
* @param log - Log function
* @param dryRun - flag for dryRun (for testing)
*/
function runCommand(env, opts, log, dryRun) {
const args = opts._;
Expand Down Expand Up @@ -113,7 +113,7 @@ function printVersions(log) {
/**
* Print a list of available commands
* @param {*} env Yeoman env
* @param log Log function
* @param log - Log function
*/
function printCommands(env, log) {
log('Available commands: ');
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/lib/model-discoverer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ async function discoverModelNames(ds, options) {

/**
* Returns the schema definition for a model
* @param ds {Juggler.DataSource}
* @param modelName {string}
* @param options {object}
* @param ds - {Juggler.DataSource}
* @param modelName - {string}
* @param options - {object}
* @returns {Promise<Juggler.SchemaDefinition>}
*/
async function discoverSingleModel(ds, modelName, options) {
Expand All @@ -46,7 +46,7 @@ function loadDataSource(path) {

/**
* Loads a compiled loopback datasource by name
* @param name {string}
* @param name - {string}
* @returns {*}
*/
function loadDataSourceByName(name) {
Expand Down
2 changes: 1 addition & 1 deletion packages/context/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ export class Context extends EventEmitter {
* Find bindings using the tag filter. If the filter matches one of the
* binding tags, the binding is included.
*
* @param tagFilter A filter for tags. It can be in one of the following
* @param tagFilter - A filter for tags. It can be in one of the following
* forms:
* - A regular expression, such as `/controller/`
* - A wildcard pattern string with optional `*` and `?`, such as `'con*'`
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Application extends Context implements LifeCycleObserver {
/**
* Register a controller class with this application.
*
* @param controllerCtor {Function} The controller class
* @param controllerCtor - The controller class
* (constructor function).
* @param name - Optional controller name, default to the class name
* @returns The newly created binding, you can use the reference to
Expand Down
2 changes: 1 addition & 1 deletion packages/metadata/src/reflect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'reflect-metadata';
*/
export class NamespacedReflect {
/**
* @param namespace : namespace to bind this reflect context
* @param namespace - Namespace to bind this reflect context
*/
constructor(private namespace?: string) {}

Expand Down
4 changes: 2 additions & 2 deletions packages/repository/src/repositories/legacy-juggler-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function isModelClass(
/**
* This is a bridge to the legacy DAO class. The function mixes DAO methods
* into a model class and attach it to a given data source
* @param modelClass {} Model class
* @param ds {DataSource} Data source
* @param modelClass - Model class
* @param ds - Data source
* @returns {} The new model class with DAO (CRUD) operations
*/
export function bindModel<T extends juggler.ModelBaseClass>(
Expand Down
2 changes: 1 addition & 1 deletion packages/testlab/src/sinon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type StubbedInstanceWithSinonAccessor<T> = T & {
* - https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14811
*
* @typeParam TType - Type being stubbed.
* @param constructor Object or class to stub.
* @param constructor - Object or class to stub.
* @returns A stubbed version of the constructor, with an extra property `stubs`
* providing access to stub API for individual methods.
*/
Expand Down

0 comments on commit 1f10f50

Please sign in to comment.