mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 01:47:21 +08:00
26 lines
533 B
TypeScript
26 lines
533 B
TypeScript
/// <reference path="ractive.d.ts" />
|
|
|
|
function test_transition() {
|
|
var plugin: Ractive.TransitionPlugin = (t: Ractive.Transition, params: Object) => {
|
|
// Some stuffs...
|
|
};
|
|
|
|
Ractive.transitions['myTransition'] = plugin;
|
|
}
|
|
|
|
Ractive.defaults = {
|
|
template: '',
|
|
debug: true
|
|
}
|
|
|
|
var options: Ractive.NewOptions = {
|
|
template: '',
|
|
};
|
|
|
|
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); |