@base44-preview/sdk 0.8.19-pr.127.3d92214 → 0.8.19-pr.127.efac8bd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,7 @@ export interface FunctionNameRegistry {
|
|
|
10
10
|
* ```typescript
|
|
11
11
|
* // Using generated function name types
|
|
12
12
|
* // With generated types, you get autocomplete on function names
|
|
13
|
-
* await base44.functions.invoke('
|
|
13
|
+
* await base44.functions.invoke('calculateTotal', { items: ['item1', 'item2'] });
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
export type FunctionName = keyof FunctionNameRegistry extends never ? string : keyof FunctionNameRegistry;
|
|
@@ -46,7 +46,6 @@ export interface FunctionsModule {
|
|
|
46
46
|
* // Basic function call
|
|
47
47
|
* const result = await base44.functions.invoke('calculateTotal', {
|
|
48
48
|
* items: ['item1', 'item2'],
|
|
49
|
-
* discount: 0.1
|
|
50
49
|
* });
|
|
51
50
|
* console.log(result.data.total);
|
|
52
51
|
* ```
|