Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e89139d

Browse files
docs(*): ensure jsdoc type expressions are valid
1 parent 2616907 commit e89139d

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/ng/directive/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be
1313
* assigned through the element's `id`, which can then be used as a directive's `templateUrl`.
1414
*
15-
* @param {'text/ng-template'} type Must be set to `'text/ng-template'`.
15+
* @param {string} type Must be set to `'text/ng-template'`.
1616
* @param {string} id Cache name of the template.
1717
*
1818
* @example

src/ng/http.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ function $HttpProvider() {
573573
* - **headers** – `{function([headerName])}` – Header getter function.
574574
* - **config** – `{Object}` – The configuration object that was used to generate the request.
575575
*
576-
* @property {Array.&ltObject&gt;} pendingRequests Array of config objects for currently pending
576+
* @property {Array.<Object>} pendingRequests Array of config objects for currently pending
577577
* requests. This is primarily meant to be used for debugging purposes.
578578
*
579579
*
@@ -875,7 +875,6 @@ function $HttpProvider() {
875875
/**
876876
* @ngdoc property
877877
* @name $http#defaults
878-
* @propertyOf ng.$http
879878
*
880879
* @description
881880
* Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of

src/ng/rootScope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ function $RootScopeProvider(){
870870
* - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
871871
*
872872
* @param {string} name Event name to listen on.
873-
* @param {function(event, args...)} listener Function to call when the event is emitted.
873+
* @param {function(event, ...args)} listener Function to call when the event is emitted.
874874
* @returns {function()} Returns a deregistration function for this listener.
875875
*/
876876
$on: function(name, listener) {

src/ngResource/resource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function shallowClearAndCopy(src, dst) {
9797
* If the parameter value is prefixed with `@` then the value of that parameter is extracted from
9898
* the data object (useful for non-GET operations).
9999
*
100-
* @param {Object.&lt;Object&gt;=} actions Hash with declaration of custom action that should extend
100+
* @param {Object.<Object>=} actions Hash with declaration of custom action that should extend
101101
* the default set of resource actions. The declaration should be created in the format of {@link
102102
* ng.$http#usage_parameters $http.config}:
103103
*

src/ngRoute/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function $RouteProvider(){
247247
* - `$scope` - The current route scope.
248248
* - `$template` - The current route template HTML.
249249
*
250-
* @property {Array.&lt;Object&gt;} routes Array of all configured routes.
250+
* @property {Array.<Object>} routes Array of all configured routes.
251251
*
252252
* @description
253253
* `$route` is used for deep-linking URLs to controllers and views (HTML partials).

0 commit comments

Comments
 (0)