mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
update vide with types
This commit is contained in:
parent
63077355eb
commit
86117b2d6d
8 changed files with 158 additions and 78 deletions
|
|
@ -64,18 +64,18 @@ desired_classes = [
|
|||
"Part",
|
||||
"Model",
|
||||
"MeshPart",
|
||||
"Highlight"
|
||||
"Highlight",
|
||||
"Folder",
|
||||
]
|
||||
|
||||
lines_before = [
|
||||
"type p<T> ="+space+"T?|()->T",
|
||||
"type e<T=()->()> ="+space+"T?",
|
||||
"type a={priority:"+space+"number,"+space+"callback:"+space+"(Instance)"+space+"->"+space+"()}",
|
||||
"type recursive<T> =T|{recursive<T>}"
|
||||
"type c<T> =a|T|Recursive<Instance>|()->Recursive<Instance>",
|
||||
"type ContentId = string", # temporary
|
||||
"type Dictionary = {[string]: any}",
|
||||
"type Array = {any}"
|
||||
"type recursive<T> =T|{read recursive<T>}|()->recursive<T>",
|
||||
"type c<T> =a|T|recursive<Instance>",
|
||||
"type Dictionary = {read [string]: any}",
|
||||
"type Array = {read any}"
|
||||
]
|
||||
|
||||
lines_after = [
|
||||
|
|
@ -99,7 +99,7 @@ aliases = {
|
|||
"float": "number",
|
||||
"double": "number",
|
||||
"bool": "boolean",
|
||||
"Content": "string",
|
||||
"ContentId": "string",
|
||||
"string": "string"+space+"|"+space+"number",
|
||||
"OptionalCoordinateFrame": "CFrame?",
|
||||
"BinaryString": "string",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue