41 lines
717 B
TypeScript
41 lines
717 B
TypeScript
|
|
namespace mod_view.rental.console_
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
export function setup
|
||
|
|
(
|
||
|
|
platform : lib_mvc.type_model<mod_platform.rental.web.type_state>
|
||
|
|
) : Promise<void>
|
||
|
|
{
|
||
|
|
return Promise.resolve<void>(undefined);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
function update
|
||
|
|
(
|
||
|
|
platform : lib_mvc.type_model<mod_platform.rental.web.type_state>,
|
||
|
|
event : lib_mvc.type_event<any>
|
||
|
|
) : Promise<void>
|
||
|
|
{
|
||
|
|
console.info("rental", event.type, platform.state.model, event.data);
|
||
|
|
return Promise.resolve<void>(undefined);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
export function implementation_view
|
||
|
|
(
|
||
|
|
) : lib_mvc.type_view<mod_platform.rental.web.type_state>
|
||
|
|
{
|
||
|
|
return {
|
||
|
|
"setup": (model) => setup(model),
|
||
|
|
"update": (model, event) => update(model, event),
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|