@wcstack/fetch 1.32.0 → 2.0.0
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.ts +21 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -339,5 +339,26 @@ declare const WCS_FETCH_ERROR_CODE: {
|
|
|
339
339
|
readonly Aborted: "aborted";
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
+
declare class FetchHeader extends HTMLElement {
|
|
343
|
+
connectedCallback(): void;
|
|
344
|
+
get headerName(): string;
|
|
345
|
+
get headerValue(): string;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
declare class FetchBody extends HTMLElement {
|
|
349
|
+
constructor();
|
|
350
|
+
get contentType(): string;
|
|
351
|
+
get bodyContent(): string;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
declare global {
|
|
355
|
+
interface HTMLElementTagNameMap {
|
|
356
|
+
"wcs-fetch": Fetch;
|
|
357
|
+
"wcs-fetch-header": FetchHeader;
|
|
358
|
+
"wcs-fetch-body": FetchBody;
|
|
359
|
+
"wcs-infinite-scroll": InfiniteScroll;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
342
363
|
export { FetchCore, WCS_FETCH_ERROR_CODE, Fetch as WcsFetch, InfiniteScroll as WcsInfiniteScroll, bootstrapFetch, getConfig };
|
|
343
364
|
export type { FetchRequestOptions, IWritableConfig, IWritableTagNames, WcsFetchCoreValues, WcsFetchHttpError, WcsFetchValues, WcsIoErrorInfo, WcsIoErrorPhase };
|
package/package.json
CHANGED