@microsoft/rayfin-functions 1.34.0-beta.0 → 1.34.0-beta.1

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.
@@ -77,6 +77,6 @@ export declare class FunctionClient<TInput = any, TOutput = any> {
77
77
  * console.log(greeting); // typed as string
78
78
  * ```
79
79
  */
80
- invoke(...args: TInput extends void ? [options?: InvokeOptions] : [params: TInput, options?: InvokeOptions]): Promise<TOutput>;
80
+ invoke(...args: TInput extends void | Record<string, never> ? [options?: InvokeOptions] : [params: TInput, options?: InvokeOptions]): Promise<TOutput>;
81
81
  }
82
82
  //# sourceMappingURL=FunctionClient.d.ts.map
@@ -15,6 +15,7 @@
15
15
  * export type MyFunctionsSchema = {
16
16
  * helloWorld: { input: { firstName: string; lastName: string }; output: string };
17
17
  * add: { input: { a: number; b: number }; output: number };
18
+ * noParams: { input: void; output: string }; // use void or {} for no-input functions
18
19
  * } satisfies FunctionsSchema;
19
20
  * ```
20
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/rayfin-functions",
3
- "version": "1.34.0-beta.0",
3
+ "version": "1.34.0-beta.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "rimraf": "~6.0.1"
20
20
  },
21
21
  "dependencies": {
22
- "@microsoft/rayfin-lib": "1.34.0-beta.0"
22
+ "@microsoft/rayfin-lib": "1.34.0-beta.1"
23
23
  },
24
24
  "publishConfig": {
25
25
  "registry": "https://npm.pkg.github.com",