diff --git a/jquery.raty/jquery.raty.d.ts b/jquery.raty/jquery.raty.d.ts index 0f1bba263..35e0f80ad 100644 --- a/jquery.raty/jquery.raty.d.ts +++ b/jquery.raty/jquery.raty.d.ts @@ -6,7 +6,8 @@ interface JQuery { raty(): JQuery; raty(options: JQueryRatyOptions): JQuery; raty(method: string, parameter: any): any; - raty(method: 'score', score: number): number; + raty(method: 'score'): number; + raty(method: 'score', score: number): void; raty(method: 'click', star: number): void; raty(method: 'readonly', on: boolean): void; raty(method: 'cancel', on: boolean): void; diff --git a/jquery.raty/jquery.raty.tests.ts b/jquery.raty/jquery.raty.tests.ts index e324e1ce3..65a298bc3 100644 --- a/jquery.raty/jquery.raty.tests.ts +++ b/jquery.raty/jquery.raty.tests.ts @@ -43,7 +43,7 @@ $element.raty({ starType: 'img', }); -$element.raty('score'); +var score: number = $element.raty('score'); $element.raty('score', 4); $element.raty('click', 2); $element.raty('readOnly', true);