@geophrase/core 1.5.0 → 1.5.1
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/README.md +1 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -95,6 +95,6 @@ const geo = new Geophrase({
|
|
|
95
95
|
|
|
96
96
|
The underlying `Geophrase` instance is created on mount and destroyed on unmount automatically, so you do not need to call `destroy()` manually.
|
|
97
97
|
|
|
98
|
-
TypeScript definitions (`GeophraseOptions`, `GeophraseAddress`, `
|
|
98
|
+
TypeScript definitions (`GeophraseOptions`, `GeophraseAddress`, `GeophraseRequestId`, `GeophraseError`) ship with the package.
|
|
99
99
|
|
|
100
100
|
See the [full docs](https://geophrase.com/docs/vanilla-js) for the complete configuration reference, security guidance, and response schemas.
|
package/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface GeophraseAddress {
|
|
|
22
22
|
address: GeophraseAddressDetails;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export interface
|
|
25
|
+
export interface GeophraseRequestId {
|
|
26
26
|
requestId: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -38,7 +38,7 @@ export interface GeophraseOptions {
|
|
|
38
38
|
key?: string;
|
|
39
39
|
orderId?: string;
|
|
40
40
|
phone?: string;
|
|
41
|
-
onSuccess: (result: GeophraseAddress |
|
|
41
|
+
onSuccess: (result: GeophraseAddress | GeophraseRequestId) => void;
|
|
42
42
|
onError?: (error: GeophraseError) => void;
|
|
43
43
|
onClose?: () => void;
|
|
44
44
|
}
|
package/package.json
CHANGED