Skip to content

Commit d302651

Browse files
chore(all): prepare release 0.10.1
1 parent dd35c4f commit d302651

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-metadata",
3-
"version": "0.10.0",
3+
"version": "0.10.1",
44
"description": "Utilities for reading and writing the metadata of JavaScript functions.",
55
"keywords": [
66
"aurelia",

dist/aurelia-metadata.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ interface DeprecatedOptions {
239239
* Decorator: Enables marking methods as deprecated.
240240
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
241241
*/
242-
export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: string, maybeDescriptor?: Object) {
242+
export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: string, maybeDescriptor?: Object): any {
243243
function decorator(target, key, descriptor) {
244244
const methodSignature = `${target.constructor.name}#${key}`;
245245
let options = maybeKey ? {} : optionsOrTarget || {};
@@ -274,7 +274,7 @@ export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: strin
274274
* Decorator: Enables mixing behaior into a class.
275275
* @param behavior An object with keys for each method to mix into the target class.
276276
*/
277-
export function mixin(behavior: Object) {
277+
export function mixin(behavior: Object): any {
278278
const instanceKeys = Object.keys(behavior);
279279
280280
function _mixin(possible) {
@@ -356,7 +356,7 @@ interface ProtocolOptions {
356356
* @param name The name of the protocol.
357357
* @param options The validation function or options object used in configuring the protocol.
358358
*/
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 {
360360
options = ensureProtocolOptions(options);
361361

362362
let result = function(target) {
@@ -385,8 +385,9 @@ export function protocol(name: string, options?: ((target: any) => string | bool
385385
* Creates a protocol decorator.
386386
* @param name The name of the protocol.
387387
* @param options The validation function or options object used in configuring the protocol.
388+
* @return The protocol decorator;
388389
*/
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 {
390391
options = ensureProtocolOptions(options);
391392
let hidden = 'protocol:' + name;
392393
let result = function(target) {

dist/es6/aurelia-metadata.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ interface DeprecatedOptions {
239239
* Decorator: Enables marking methods as deprecated.
240240
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
241241
*/
242-
export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: string, maybeDescriptor?: Object) {
242+
export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: string, maybeDescriptor?: Object): any {
243243
function decorator(target, key, descriptor) {
244244
const methodSignature = `${target.constructor.name}#${key}`;
245245
let options = maybeKey ? {} : optionsOrTarget || {};
@@ -274,7 +274,7 @@ export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: strin
274274
* Decorator: Enables mixing behaior into a class.
275275
* @param behavior An object with keys for each method to mix into the target class.
276276
*/
277-
export function mixin(behavior: Object) {
277+
export function mixin(behavior: Object): any {
278278
const instanceKeys = Object.keys(behavior);
279279
280280
function _mixin(possible) {
@@ -356,7 +356,7 @@ interface ProtocolOptions {
356356
* @param name The name of the protocol.
357357
* @param options The validation function or options object used in configuring the protocol.
358358
*/
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 {
360360
options = ensureProtocolOptions(options);
361361

362362
let result = function(target) {
@@ -385,8 +385,9 @@ export function protocol(name: string, options?: ((target: any) => string | bool
385385
* Creates a protocol decorator.
386386
* @param name The name of the protocol.
387387
* @param options The validation function or options object used in configuring the protocol.
388+
* @return The protocol decorator;
388389
*/
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 {
390391
options = ensureProtocolOptions(options);
391392
let hidden = 'protocol:' + name;
392393
let result = function(target) {

doc/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### 0.10.1 (2015-11-11)
2+
3+
4+
#### Bug Fixes
5+
6+
* **all:** improve TS happiness for decorators ([dd35c4fd](https://github.com/aurelia/metadata/commit/dd35c4fd1ef089764bdbacde8380aa4d47e28d2c))
7+
8+
19
## 0.10.0 (2015-11-09)
210

311

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-metadata",
3-
"version": "0.10.0",
3+
"version": "0.10.1",
44
"description": "Utilities for reading and writing the metadata of JavaScript functions.",
55
"keywords": [
66
"aurelia",

0 commit comments

Comments
 (0)