@better-giving/endowment 1.0.27 → 1.0.28
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/index.d.mts +3 -3
- package/package.json +1 -1
- package/src/index.mts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { CloudsearchEndow as EndowItem } from "./cloudsearch.mjs";
|
|
1
2
|
import type { Media } from "./db.mjs";
|
|
2
3
|
import type { Milestone, Program as ProgramShape } from "./schema.mjs";
|
|
3
|
-
import type { CloudsearchEndow as EndowItem } from "./cloudsearch.mjs";
|
|
4
4
|
export type { Allocation, DonateMethodId, EndowDesignation, Endowment as Endow, EndowFields, EndowQueryParams, EndowUpdate, Environment, Increment, MediaQueryParams, MediaQueryParamsObj, MediaType, MediaUpdate, Milestone, MilestoneUpdate, NewMilestone, NewProgram, ProgramUpdate, SocialMediaURLs, UnSdgNum, } from "./schema.mjs";
|
|
5
5
|
export type { CloudsearchEndow as EndowItem, CloudsearchEndowsQueryParams as EndowsQueryParams, } from "./cloudsearch.mjs";
|
|
6
6
|
/** client responsible on T depending on keys projected */
|
|
7
|
-
export interface EndowsPage<T extends keyof EndowItem =
|
|
8
|
-
items:
|
|
7
|
+
export interface EndowsPage<T extends keyof EndowItem = keyof EndowItem> {
|
|
8
|
+
items: Pick<EndowItem, T>[];
|
|
9
9
|
page: number;
|
|
10
10
|
numPages: number;
|
|
11
11
|
}
|
package/package.json
CHANGED
package/src/index.mts
CHANGED
|
@@ -29,8 +29,8 @@ export type {
|
|
|
29
29
|
} from "./cloudsearch.mjs";
|
|
30
30
|
|
|
31
31
|
/** client responsible on T depending on keys projected */
|
|
32
|
-
export interface EndowsPage<T extends keyof EndowItem =
|
|
33
|
-
items:
|
|
32
|
+
export interface EndowsPage<T extends keyof EndowItem = keyof EndowItem> {
|
|
33
|
+
items: Pick<EndowItem, T>[];
|
|
34
34
|
page: number;
|
|
35
35
|
numPages: number;
|
|
36
36
|
}
|