docdef/source/objects/implementations/list.ts

33 lines
421 B
TypeScript
Raw Normal View History

2024-02-08 18:10:46 +01:00
/**
*/
type type_object_list_data = {
2026-02-23 20:16:38 +01:00
items : Array<
type_object
>;
2024-02-08 18:10:46 +01:00
};
/**
*/
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"],
}
)
)
);