@@ -239,7 +239,7 @@ interface DeprecatedOptions {
239
239
* Decorator: Enables marking methods as deprecated.
240
240
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
241
241
*/
242
- export function deprecated ( optionsOrTarget ? : DeprecatedOptions , maybeKey ? : string , maybeDescriptor ? : Object ) {
242
+ export function deprecated ( optionsOrTarget ? : DeprecatedOptions , maybeKey ? : string , maybeDescriptor ? : Object ) : any {
243
243
function decorator ( target , key , descriptor ) {
244
244
const methodSignature = `${target . constructor . name } #${ key } `;
245
245
let options = maybeKey ? { } : optionsOrTarget || { } ;
@@ -274,7 +274,7 @@ export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: strin
274
274
* Decorator: Enables mixing behaior into a class.
275
275
* @param behavior An object with keys for each method to mix into the target class.
276
276
*/
277
- export function mixin(behavior: Object) {
277
+ export function mixin(behavior: Object): any {
278
278
const instanceKeys = Object.keys(behavior);
279
279
280
280
function _mixin(possible) {
@@ -356,7 +356,7 @@ interface ProtocolOptions {
356
356
* @param name The name of the protocol.
357
357
* @param options The validation function or options object used in configuring the protocol.
358
358
*/
359
- export function protocol ( name : string , options ?: ( ( target : any ) => string | boolean ) | ProtocolOptions ) {
359
+ export function protocol ( name : string , options ?: ( ( target : any ) => string | boolean ) | ProtocolOptions ) : any {
360
360
options = ensureProtocolOptions ( options ) ;
361
361
362
362
let result = function ( target ) {
@@ -385,8 +385,9 @@ export function protocol(name: string, options?: ((target: any) => string | bool
385
385
* Creates a protocol decorator.
386
386
* @param name The name of the protocol.
387
387
* @param options The validation function or options object used in configuring the protocol.
388
+ * @return The protocol decorator;
388
389
*/
389
- protocol . create = function ( name : string , options ?: ( ( target : any ) => string | boolean ) | ProtocolOptions ) {
390
+ protocol . create = function ( name : string , options ?: ( ( target : any ) => string | boolean ) | ProtocolOptions ) : Function {
390
391
options = ensureProtocolOptions ( options ) ;
391
392
let hidden = 'protocol:' + name ;
392
393
let result = function ( target ) {
0 commit comments