@tstdl/base 0.92.25 → 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.
- package/ai/types.d.ts +3 -5
- 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 {
|
|
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,8 +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<P extends Record, T extends SchemaFunctionDeclarationWithHandler<P>>(declaration: T &
|
|
88
|
-
parameters: ObjectSchema<P>;
|
|
89
|
-
}): T;
|
|
87
|
+
export declare function defineFunction<P extends Record, T extends TypedOmit<SchemaFunctionDeclarationWithHandler<P>, 'parameters'>>(declaration: T & Pick<SchemaFunctionDeclarationWithHandler<P>, 'parameters'>): T;
|
|
90
88
|
export declare function defineFunction<T extends SchemaFunctionDeclarationWithoutHandler>(declaration: T): T;
|
|
91
89
|
export declare function isSchemaFunctionDeclarationWithHandler(declaration: SchemaFunctionDeclaration): declaration is SchemaFunctionDeclarationWithHandler;
|