@ember-data-mirror/request 5.3.4

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.
@@ -0,0 +1,34 @@
1
+ declare module '@ember-data-mirror/request/fetch' {
2
+ /**
3
+ * A basic Fetch Handler which converts a request into a
4
+ * `fetch` call presuming the response to be `json`.
5
+ *
6
+ * ```ts
7
+ * import Fetch from '@ember-data-mirror/request/fetch';
8
+ *
9
+ * manager.use([Fetch]);
10
+ * ```
11
+ *
12
+ * @module @ember-data-mirror/request/fetch
13
+ * @main @ember-data-mirror/request/fetch
14
+ */
15
+ import { type Context } from '@ember-data-mirror/request/-private/context';
16
+ /**
17
+ * A basic handler which converts a request into a
18
+ * `fetch` call presuming the response to be `json`.
19
+ *
20
+ * ```ts
21
+ * import Fetch from '@ember-data-mirror/request/fetch';
22
+ *
23
+ * manager.use([Fetch]);
24
+ * ```
25
+ *
26
+ * @class Fetch
27
+ * @public
28
+ */
29
+ const Fetch: {
30
+ request<T>(context: Context): Promise<T>;
31
+ };
32
+ export default Fetch;
33
+ }
34
+ //# sourceMappingURL=fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../src/fetch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAA2B,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AA8E3E;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,KAAK;wBACiB,OAAO,GAAG,QAAQ,CAAC,CAAC;CAiJ/C,CAAC;AAMF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,17 @@
1
+ /// <reference path="./fetch.d.ts" />
2
+ /// <reference path="./-private/future.d.ts" />
3
+ /// <reference path="./-private/promise-cache.d.ts" />
4
+ /// <reference path="./-private/debug.d.ts" />
5
+ /// <reference path="./-private/types.d.ts" />
6
+ /// <reference path="./-private/utils.d.ts" />
7
+ /// <reference path="./-private/manager.d.ts" />
8
+ /// <reference path="./-private/context.d.ts" />
9
+ declare module '@ember-data-mirror/request' {
10
+ export { RequestManager as default } from '@ember-data-mirror/request/-private/manager';
11
+ export { createDeferred } from '@ember-data-mirror/request/-private/future';
12
+ export type { Future, Handler, CacheHandler, NextFn } from '@ember-data-mirror/request/-private/types';
13
+ export type { RequestContext, ImmutableRequestInfo, RequestInfo, ResponseInfo, StructuredDocument, StructuredErrorDocument, StructuredDataDocument, } from '@warp-drive/core-types/request';
14
+ export { setPromiseResult, getPromiseResult } from '@ember-data-mirror/request/-private/promise-cache';
15
+ export type { Awaitable } from '@ember-data-mirror/request/-private/promise-cache';
16
+ }
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9E,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC9E,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC"}