You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/namespace.js
+40-25
Original file line number
Diff line number
Diff line change
@@ -277,17 +277,18 @@ Namespace.prototype.resolveAll = function resolveAll() {
277
277
/**
278
278
* Looks up the reflection object at the specified path, relative to this namespace.
279
279
* @param {string|string[]} path Path to look up
280
-
* @param {function(new: ReflectionObject)} filterType Filter type, one of `protobuf.Type`, `protobuf.Enum`, `protobuf.Service` etc.
280
+
* @param {function(new: ReflectionObject)|Array.<function(new: ReflectionObject)>} filterTypes Filter types, any combination of `protobuf.Type`, `protobuf.Enum`, `protobuf.Service` etc.
281
281
* @param {boolean} [parentAlreadyChecked=false] If known, whether the parent has already been checked
282
282
* @returns {?ReflectionObject} Looked up object or `null` if none could be found
* Looks up the {@link Service|service} at the specified path, relative to this namespace.
344
+
* Looks up the values of the {@link Enum|enum} at the specified path, relative to this namespace.
345
+
* Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it returns the enum's values directly and throws instead of returning `null`.
346
+
* @param {string|string[]} path Path to look up
347
+
* @returns {Object.<string,number>} Enum values
348
+
* @throws {Error} If `path` does not point to an enum
* Looks up the values of the {@linkEnum|enum} at the specified path, relative to this namespace.
358
-
* Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it returns the enum's values directly and throws instead of returning `null`.
372
+
* Looks up the {@linkService|service} at the specified path, relative to this namespace.
373
+
* Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.
359
374
* @param {string|string[]} path Path to look up
360
-
* @returns {Object.<string,number>} Enum values
361
-
* @throws {Error} If `path` does not point to an enum
375
+
* @returns {Service} Looked up service
376
+
* @throws {Error} If `path` does not point to a service
0 commit comments