@maxim_mazurok/gapi.client.pubsublite-v1 0.2.20260307 → 0.2.20260605
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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://pubsublite.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260605
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -217,7 +217,7 @@ declare namespace gapi.client {
|
|
|
217
217
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
218
218
|
code?: number;
|
|
219
219
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
220
|
-
details?:
|
|
220
|
+
details?: {[P in string]: any}[];
|
|
221
221
|
/** 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. */
|
|
222
222
|
message?: string;
|
|
223
223
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -10,6 +10,18 @@ Install typings for Pub/Sub Lite API:
|
|
|
10
10
|
npm install @types/gapi.client.pubsublite-v1 --save-dev
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## TypeScript 6.0+
|
|
14
|
+
|
|
15
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"compilerOptions": {
|
|
20
|
+
"types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.pubsublite-v1"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
13
25
|
## Usage
|
|
14
26
|
|
|
15
27
|
You need to initialize Google API client in your code:
|