Prepared for the first publish (#1620)

This commit is contained in:
Andrea Giammarchi
2023-08-03 11:22:16 +02:00
committed by GitHub
parent 8a01a56e51
commit c96f5912df
9 changed files with 1972 additions and 1880 deletions

10
pyscript.next/types/fetch.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
/**
* This is a fetch wrapper that handles any non 200 responses and throws a
* FetchError with the right ErrorCode. This is useful because our FetchError
* will automatically create an alert banner.
*
* @param {string} url - URL to fetch
* @param {Request} [options] - options to pass to fetch
* @returns {Promise<Response>}
*/
export function robustFetch(url: string, options?: Request): Promise<Response>;