mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 10:46:13 +02:00
Add typescript types for patterns
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
const randomFromArray = (array) => array[Math.floor(Math.random() * array.length)];
|
||||
const randomFromArray = (array: number[]) => array[Math.floor(Math.random() * array.length)];
|
||||
|
||||
export default randomFromArray;
|
||||
|
Reference in New Issue
Block a user