Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
Export deprecated types if necessary
  • Loading branch information
JohnnyMorganz committed Sep 4, 2023
1 parent ddc5dfb commit 339b835
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 48 deletions.
3 changes: 2 additions & 1 deletion scripts/dumpRobloxTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@
POST_DATATYPES_BASE = """
export type SharedTable = any
export type OpenCloudModel = any
export type ClipEvaluator = any
export type RBXScriptSignal<T... = ...any> = {
Wait: (self: RBXScriptSignal<T...>) -> T...,
Expand Down Expand Up @@ -969,7 +970,7 @@ def printClasses(dump: ApiDump):
# Forward declare "deprecated" classes in case they are still used
for klass in dump["Classes"]:
if shouldExcludeAsDeprecated(klass):
print(f"type {klass['Name']} = any")
print(f"export type {klass['Name']} = any")

for klass in dump["Classes"]:
if klass["Name"] in IGNORED_INSTANCES:
Expand Down
Loading

0 comments on commit 339b835

Please sign in to comment.