Skip to content

Commit ae976d0

Browse files
authored
fix(ai): typings for functionDeclaration.parameters. (#8948)
1 parent a029ce3 commit ae976d0

File tree

11 files changed

+74
-1016
lines changed

11 files changed

+74
-1016
lines changed

.changeset/rotten-taxis-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/ai': patch
3+
---
4+
5+
Fix typings for `functionDeclaration.parameters`.

common/api-review/ai.api.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export interface FunctionCallPart {
281281
export interface FunctionDeclaration {
282282
description: string;
283283
name: string;
284-
parameters?: ObjectSchemaInterface;
284+
parameters?: ObjectSchema | ObjectSchemaRequest;
285285
}
286286

287287
// @public
@@ -703,9 +703,8 @@ export class ObjectSchema extends Schema {
703703
}
704704

705705
// @public
706-
export interface ObjectSchemaInterface extends SchemaInterface {
707-
// (undocumented)
708-
optionalProperties?: string[];
706+
export interface ObjectSchemaRequest extends SchemaRequest {
707+
optionalProperties?: never;
709708
// (undocumented)
710709
type: SchemaType.OBJECT;
711710
}

0 commit comments

Comments
 (0)