31 lines
416 B
TypeScript
31 lines
416 B
TypeScript
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
type type_object_list_data = {
|
||
|
|
items : Array<type_object>;
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
class type_object_list implements type_object
|
||
|
|
{
|
||
|
|
public readonly kind : string = "list";
|
||
|
|
public readonly data : type_object_list_data;
|
||
|
|
public constructor(data : type_object_list_data) {this.data = data;}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
*/
|
||
|
|
object_kind_register(
|
||
|
|
"list",
|
||
|
|
(data) => (
|
||
|
|
new type_object_list(
|
||
|
|
{
|
||
|
|
"items": data["items"],
|
||
|
|
}
|
||
|
|
)
|
||
|
|
)
|
||
|
|
);
|