@choosemycompany/lib 0.3.0 → 0.3.2
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/dist/http/types.d.ts
CHANGED
|
@@ -77,6 +77,12 @@ export type ListResponse<T> = {
|
|
|
77
77
|
export type RetrieveResponse<T> = {
|
|
78
78
|
item: T;
|
|
79
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* A raw JSON object as returned by the HTTP layer, before mapping to a domain
|
|
82
|
+
* type. Use as the generic argument of `RetrieveResponse` / `ListResponse` when
|
|
83
|
+
* the caller maps the payload itself — e.g. `ListResponse<HttpResponse>`.
|
|
84
|
+
*/
|
|
85
|
+
export type HttpResponse = Record<string, unknown>;
|
|
80
86
|
/**
|
|
81
87
|
* Field-level validation error item, as returned in `MandeErrorBody.errors`.
|
|
82
88
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -31,5 +31,5 @@ export { usePrimaryTypeTranslation } from './i18n/usePrimaryTypeTranslation';
|
|
|
31
31
|
export { useResponsiveSize } from './ui/useResponsiveSize';
|
|
32
32
|
export { useTranslate } from './i18n/useTranslate';
|
|
33
33
|
export type { StoreOptions, RetrieveOptions, ListOptions, ViewKeyParams, View, ViewOptions, } from './store/types';
|
|
34
|
-
export type { PaginatedQuery, Pagination, ListResponse, RetrieveResponse, RequestOptions, ErrorItem, MandeError, MandeErrorBody, } from './http/types';
|
|
34
|
+
export type { PaginatedQuery, Pagination, ListResponse, RetrieveResponse, HttpResponse, RequestOptions, ErrorItem, MandeError, MandeErrorBody, } from './http/types';
|
|
35
35
|
export type { Language, Translation, InternationalizedRoute, } from './i18n/types';
|
|
@@ -31,4 +31,4 @@ import { Ref } from 'vue';
|
|
|
31
31
|
* // Template: <ProfileCard v-show="imagesLoaded" :profile="profile" />
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
export declare function useImageCacheWatcherCallback(): <T extends
|
|
34
|
+
export declare function useImageCacheWatcherCallback(): <T extends object>(areImagesLoaded: Ref<boolean>, cacheKeyPrefix: string, fields: string[]) => (_watchedObject: T | undefined) => Promise<void>;
|
package/package.json
CHANGED