@types/google.accounts
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -88,3 +88,3 @@ // Type definitions for non-npm package Google Identity Services JavaScript SDK 0.0 | ||
* A TokenResponse JavaScript object will be passed to your callback | ||
* method in the popup UX. | ||
* method (as defined in TokenClientConfig) in the popup UX. | ||
*/ | ||
@@ -149,2 +149,43 @@ interface TokenResponse { | ||
/** | ||
* A CodeResponse JavaScript object will be passed to your callback | ||
* method (as defined in CodeClientConfig) in the popup UX. | ||
*/ | ||
interface CodeResponse { | ||
/** | ||
* The authorization code of a successful token response. | ||
*/ | ||
code: string; | ||
/** | ||
* A space-delimited list of scopes that are approved by the user. | ||
*/ | ||
scope: string; | ||
/** | ||
* The string value that your application uses to maintain state | ||
* between your authorization request and the response. | ||
*/ | ||
state: string; | ||
/** | ||
* A single ASCII error code. | ||
*/ | ||
error: string; | ||
/** | ||
* Human-readable ASCII text providing additional information, | ||
* used to assist the client developer in understanding | ||
* the error that occurred. | ||
*/ | ||
error_description: string; | ||
/** | ||
* A URI identifying a human-readable web page with information | ||
* about the error, used to provide the client developer with | ||
* additional information about the error. | ||
*/ | ||
error_uri: string; | ||
} | ||
interface TokenClientConfig { | ||
@@ -251,3 +292,3 @@ /** | ||
*/ | ||
callback?: (response: unknown) => void; | ||
callback?: (response: CodeResponse) => void; | ||
@@ -254,0 +295,0 @@ /** |
{ | ||
"name": "@types/google.accounts", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "TypeScript definitions for Google Identity Services JavaScript SDK", | ||
@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.accounts", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "3f811a155245f7604b663493c4a36918cc388cd9424aeac5017463ad4716b7c3", | ||
"typeScriptVersion": "3.9" | ||
"typesPublisherContentHash": "a98b4496367f8ac043e7330f23fcb0749e4b3c01a7bcfbe2a26f55f3cb55905d", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 01 Jun 2022 19:01:33 GMT | ||
* Last updated: Wed, 30 Nov 2022 03:03:01 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `google` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24527
535