mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Merge pull request #3567 from davetayls/feature/marionette-view-getoption
added getOption to view
This commit is contained in:
@@ -96,6 +96,7 @@ module Marionette.Tests {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.getOption<string>('foo');
|
||||
this.triggers = {
|
||||
'click .foo': 'bar'
|
||||
};
|
||||
|
||||
Vendored
+6
@@ -721,6 +721,12 @@ declare module Marionette {
|
||||
getTemplate(): any;
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve an object's attribute either directly from the object, or
|
||||
* from the object's this.options, with this.options taking precedence.
|
||||
*/
|
||||
getOption<T>(optionName:string): T;
|
||||
|
||||
mixinTemplateHelpers(target?: any): any;
|
||||
configureTriggers(): any;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user