mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 14:02:18 +02:00
Add TSDocs
This commit is contained in:
parent
fd09bd746d
commit
cb42cf50dc
@ -612,6 +612,10 @@ export function getShinyDescriptor(variant: Variant): string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If the input isn't already an array, turns it into one.
|
||||||
|
* @returns An array with the same type as the type of the input
|
||||||
|
*/
|
||||||
export function coerceArray<T>(input: T | T[]): T[] {
|
export function coerceArray<T>(input: T | T[]): T[] {
|
||||||
return Array.isArray(input) ? input : [input];
|
return Array.isArray(input) ? input : [input];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user