This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class_name GenericType extends Node | |
| ## A class helper to create custom generic types through a template script | |
| ## | |
| ## Example: [codeblock] | |
| ## # prevent instances without specified types with @asbtract (very important else code might crash) | |
| ## @abstract class_name Foo extends RefCounted | |
| ## | |
| ## const T := GenericType.Param | |
| ## static func with(type): GenericType.register(Foo, { T = type }) | |
| ## |