@maxim_mazurok/gapi.client.ml-v1 0.2.20251213 → 0.3.20251213
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/index.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +12 -0
package/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare namespace gapi.client {
|
|
|
30
30
|
/** The HTTP request/response body as raw binary. */
|
|
31
31
|
data?: string;
|
|
32
32
|
/** Application specific response metadata. Must be set in the first response for streaming APIs. */
|
|
33
|
-
extensions?:
|
|
33
|
+
extensions?: {[P in string]: any}[];
|
|
34
34
|
}
|
|
35
35
|
interface GoogleCloudMlV1__AcceleratorConfig {
|
|
36
36
|
/** The number of accelerators to attach to each machine running the job. */
|
|
@@ -886,7 +886,7 @@ declare namespace gapi.client {
|
|
|
886
886
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
887
887
|
code?: number;
|
|
888
888
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
889
|
-
details?:
|
|
889
|
+
details?: {[P in string]: any}[];
|
|
890
890
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
891
891
|
message?: string;
|
|
892
892
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for AI Platform Training & Prediction API:
|
|
|
11
11
|
npm install @types/gapi.client.ml-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.ml-v1"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|