mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 05:27:30 +00:00
32 lines
584 B
TypeScript
32 lines
584 B
TypeScript
|
|
|
|
function test_transition() {
|
|
var plugin: Ractive.TransitionPlugin = (t: Ractive.Transition, params: Object) => {
|
|
// Some stuffs...
|
|
};
|
|
|
|
Ractive.transitions['myTransition'] = plugin;
|
|
}
|
|
|
|
var adaptor: Ractive.AdaptorPlugin;
|
|
|
|
|
|
Ractive.defaults = {
|
|
template: '',
|
|
}
|
|
|
|
var options: Ractive.NewOptions = {
|
|
adapt: ['myAdaptor', adaptor],
|
|
template: '',
|
|
data: {
|
|
someThing: 'value',
|
|
}
|
|
};
|
|
|
|
var r: Ractive.Ractive = new Ractive(options);
|
|
|
|
r.add('keypath', 1);
|
|
|
|
var re: Ractive.Static = Ractive.extend(options);
|
|
var component: Ractive.Static = re.extend(options);
|
|
new component(options); |