@heycar/heycars-map 0.3.18 → 0.4.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.
@@ -34,4 +34,4 @@ export interface Route {
34
34
  distance: number;
35
35
  duration: number;
36
36
  }
37
- export type DriverStatus = "dispatching" | "book-dispatching" | "dispatched" | "driverStartService" | "book-driverStartService" | "book-dispatched" | "driverArrived" | "inService" | "canceled" | "endService" | "completed" | "canceling" | "banlanceRefund" | "waitBanlanceRefund" | "rechargePayed" | "waitRechargePay" | "payed" | "waitpay" | "refund" | "confirmed";
37
+ export type DriverStatus = "dispatching" | "book-dispatching" | "dispatched" | "driverStartService" | "book-driverStartService" | "book-dispatched" | "driverArrived" | "inService" | "canceled" | "endService" | "completed" | "canceling" | "banlanceRefund" | "waitBanlanceRefund" | "rechargePayed" | "waitRechargePay" | "payed" | "waitpay" | "refund" | "confirmed" | "assign";
@@ -12,6 +12,7 @@ export type VectorMapForeign = "style_en" | "style_local" | "style_zh_cn";
12
12
  export declare const language2vectorMapForeign: (lang: "en" | "zh") => VectorMapForeign;
13
13
  export declare const place2point: (place: Place) => Point;
14
14
  export declare const pipeAsync: <P extends any[]>(fn?: ((...args: P) => any) | undefined) => (...args: P) => void;
15
+ export declare const pipeDefer: <P extends any[]>(fn?: ((...args: P) => any) | undefined) => (...args: P) => void;
15
16
  export declare const geocoderResult2cityName: (value: google.maps.GeocoderResult) => string | undefined;
16
17
  export declare const isPlaceEqual: (p1: Place, p2?: Place) => boolean;
17
18
  export declare const isPointEqual: (p1: Point, p2?: Point) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.3.18",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "module": "./dist/index.js",
@@ -90,6 +90,7 @@
90
90
  },
91
91
  "scripts": {
92
92
  "dev": "vite -c vite.config.dev.ts",
93
+ "dev:lib": "concurrently \"vite build --watch --emptyOutDir false\" \"tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration --watch\"",
93
94
  "build": "rm -rf dist && vite build && tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration"
94
95
  }
95
96
  }