@tstdl/base 0.92.24 → 0.92.26

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.
Files changed (2) hide show
  1. package/ai/types.d.ts +3 -3
  2. package/package.json +1 -1
package/ai/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { LiteralUnion } from 'type-fest';
2
- import { type ObjectSchema, type SchemaOutput, type SchemaTestable } from '../schema/index.js';
3
- import type { Record, UndefinableJsonObject } from '../types.js';
2
+ import type { ObjectSchema, SchemaOutput, SchemaTestable } from '../schema/index.js';
3
+ import type { Record, TypedOmit, UndefinableJsonObject } from '../types.js';
4
4
  import type { ResolvedValueOrProvider, ValueOrAsyncProvider } from '../utils/value-or-provider.js';
5
5
  export type FileInput = {
6
6
  path: string;
@@ -84,6 +84,6 @@ export type GenerationResult = {
84
84
  usage: GenerationUsage;
85
85
  };
86
86
  export declare function defineFunctions<T extends SchemaFunctionDeclarations>(declarations: T): T;
87
- export declare function defineFunction<T extends SchemaFunctionDeclarationWithHandler>(declaration: T): T;
87
+ export declare function defineFunction<P extends Record, T extends TypedOmit<SchemaFunctionDeclarationWithHandler<P>, 'parameters'>>(declaration: T & Pick<SchemaFunctionDeclarationWithHandler<P>, 'parameters'>): T;
88
88
  export declare function defineFunction<T extends SchemaFunctionDeclarationWithoutHandler>(declaration: T): T;
89
89
  export declare function isSchemaFunctionDeclarationWithHandler(declaration: SchemaFunctionDeclaration): declaration is SchemaFunctionDeclarationWithHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.92.24",
3
+ "version": "0.92.26",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"