Skip to content

Commit

Permalink
Fixing Instance.fromExisting (#1277)
Browse files Browse the repository at this point in the history
previous with keyof CreatableInstances doesn't return proper type
  • Loading branch information
Velover authored Aug 8, 2024
1 parent e854b9b commit 44a94ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/roblox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,7 @@ interface InstanceConstructor {
* - This constructor will not copy any of the descendant `Instances` parented to the existing object.
* - This constructor will return a new object even if the existing object had `Instance.Archivable` set to `false`.
*/
fromExisting: <T extends keyof CreatableInstances>(
existingInstance: CreatableInstances[T],
) => CreatableInstances[T];
fromExisting: <T extends Instance>(existingInstance: T) => T;
}

declare const Instance: InstanceConstructor;
Expand Down

0 comments on commit 44a94ff

Please sign in to comment.