Skip to content

Commit a028430

Browse files
committed
remove 'declare' from types
1 parent 62da1dd commit a028430

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

docs-devsite/ai.functiondeclaration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Structured representation of a function declaration as defined by the [OpenAPI 3
1515
<b>Signature:</b>
1616

1717
```typescript
18-
export declare interface FunctionDeclaration
18+
export interface FunctionDeclaration
1919
```
2020

2121
## Properties

docs-devsite/ai.functiondeclarationstool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A `FunctionDeclarationsTool` is a piece of code that enables the system to inter
1515
<b>Signature:</b>
1616

1717
```typescript
18-
export declare interface FunctionDeclarationsTool
18+
export interface FunctionDeclarationsTool
1919
```
2020

2121
## Properties

docs-devsite/ai.googlesearch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Currently, this is an empty object, but it's reserved for future configuration o
1717
<b>Signature:</b>
1818

1919
```typescript
20-
export declare interface GoogleSearch
20+
export interface GoogleSearch
2121
```

docs-devsite/ai.googlesearchtool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Important: If using Grounding with Google Search, you are required to comply wit
1717
<b>Signature:</b>
1818

1919
```typescript
20-
export declare interface GoogleSearchTool
20+
export interface GoogleSearchTool
2121
```
2222

2323
## Properties

docs-devsite/ai.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Defines a tool that model can call to access external knowledge.
406406
<b>Signature:</b>
407407

408408
```typescript
409-
export declare type Tool = FunctionDeclarationsTool | GoogleSearchTool;
409+
export type Tool = FunctionDeclarationsTool | GoogleSearchTool;
410410
```
411411

412412
## TypedSchema

packages/ai/src/requests/request.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ export async function makeRequest(
187187
response.status === 403 &&
188188
errorDetails &&
189189
errorDetails.some(
190-
// FIXME: cannot read 'some' of undefined
191190
(detail: ErrorDetails) => detail.reason === 'SERVICE_DISABLED'
192191
) &&
193192
errorDetails.some((detail: ErrorDetails) =>

packages/ai/src/types/requests.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export interface RequestOptions {
165165
* Defines a tool that model can call to access external knowledge.
166166
* @public
167167
*/
168-
export declare type Tool = FunctionDeclarationsTool | GoogleSearchTool;
168+
export type Tool = FunctionDeclarationsTool | GoogleSearchTool;
169169

170170
/**
171171
* Structured representation of a function declaration as defined by the
@@ -176,7 +176,7 @@ export declare type Tool = FunctionDeclarationsTool | GoogleSearchTool;
176176
* as a Tool by the model and executed by the client.
177177
* @public
178178
*/
179-
export declare interface FunctionDeclaration {
179+
export interface FunctionDeclaration {
180180
/**
181181
* The name of the function to call. Must start with a letter or an
182182
* underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with
@@ -207,7 +207,7 @@ export declare interface FunctionDeclaration {
207207
*
208208
* @public
209209
*/
210-
export declare interface GoogleSearchTool {
210+
export interface GoogleSearchTool {
211211
/**
212212
* Specifies the Google Search configuration.
213213
* Currently, this is an empty object, but it's reserved for future configuration options.
@@ -229,15 +229,15 @@ export declare interface GoogleSearchTool {
229229
*
230230
* @public
231231
*/
232-
export declare interface GoogleSearch {}
232+
export interface GoogleSearch {}
233233

234234
/**
235235
* A `FunctionDeclarationsTool` is a piece of code that enables the system to
236236
* interact with external systems to perform an action, or set of actions,
237237
* outside of knowledge and scope of the model.
238238
* @public
239239
*/
240-
export declare interface FunctionDeclarationsTool {
240+
export interface FunctionDeclarationsTool {
241241
/**
242242
* Optional. One or more function declarations
243243
* to be passed to the model along with the current user query. Model may

0 commit comments

Comments
 (0)