-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathfunctions.json
30 lines (30 loc) · 1.72 KB
/
functions.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"Function": {
"EventCards": {
"name": "EventCards",
"params": {
"numOfCards": "Optional number of cards to fetch, default is 2"
},
"description": "This function asynchronously fetches event cards using getEventCards function and returns them as JSX elements by mapping over the events.",
"usage": "To use the EventCards function, import it and call it with an optional parameter for the number of cards to fetch. It returns a Promise with JSX elements representing event cards."
},
"async": {
"name": "async",
"params": {
"numOfCards": "Optional parameter specifying the number of cards to be processed"
},
"description": "This function performs an asynchronous operation to process the specified number of cards.",
"usage": "To use this function, call it with the desired number of cards to process as an optional parameter. For example, async(10) will process 10 cards asynchronously."
}
},
"Component": {
"EventCards": {
"name": "EventCards",
"props": {
"events": "An array of objects representing different events to be displayed in the cards"
},
"description": "The EventCards component displays a set of event cards with information about various events. Each card represents a single event with details like event title, date, location, and description.",
"usage": "To use the EventCards component, pass an array of event objects as the 'events' prop. Each event object should contain properties like 'title', 'date', 'location', and 'description'."
}
}
}