Skip to content

Commit

Permalink
Make DistanceAttenuationCurve type more flexible (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
osyrisrblx authored Aug 8, 2024
1 parent 5d9d2a2 commit e854b9b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions include/roblox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3020,12 +3020,10 @@ interface UnbanAsyncConfig {
ApplyToUniverse?: boolean;
}

interface DistanceAttenuationCurve {
/**
* Keys are expected to be unique numbers greater than or equal to 0, while values are expected to be numbers between 0 and 1 (inclusive). Tables containing up to 400 key-value pairs are supported.
*/
[key: number]: number;
}
/**
* Keys are expected to be unique numbers greater than or equal to 0, while values are expected to be numbers between 0 and 1 (inclusive). Tables containing up to 400 key-value pairs are supported.
*/
type DistanceAttenuationCurve = { [key: number]: number } | Map<number, number>;

interface CalculateConstraintsToPreserveConfig {
/**
Expand Down

0 comments on commit e854b9b

Please sign in to comment.