22
33This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:
44
5- * [ Web Fetch API] [ web-fetch ]
6- * [ Web Streams API] [ web-streams ] and in particular ` ReadableStream `
7- * [ Async iterables] [ async-iter ] using ` Symbol.asyncIterator `
5+ - [ Web Fetch API] [ web-fetch ]
6+ - [ Web Streams API] [ web-streams ] and in particular ` ReadableStream `
7+ - [ Async iterables] [ async-iter ] using ` Symbol.asyncIterator `
88
99[ web-fetch ] : https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
1010[ web-streams ] : https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
@@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are:
2525
2626The following ` tsconfig.json ` options are recommended for projects using this
2727SDK in order to get static type support for features like async iterables,
28- streams and ` fetch ` -related APIs ([ ` for await...of ` ] [ for-await-of ] ,
28+ streams and ` fetch ` -related APIs ([ ` for await...of ` ] [ for-await-of ] ,
2929[ ` AbortSignal ` ] [ abort-signal ] , [ ` Request ` ] [ request ] , [ ` Response ` ] [ response ] and
3030so on):
3131
@@ -38,11 +38,11 @@ so on):
3838{
3939 " compilerOptions" : {
4040 " target" : " es2020" , // or higher
41- " lib" : [" es2020" , " dom" , " dom.iterable" ],
41+ " lib" : [" es2020" , " dom" , " dom.iterable" ]
4242 }
4343}
4444```
4545
4646While ` target ` can be set to older ECMAScript versions, it may result in extra,
4747unnecessary compatibility code being generated if you are not targeting old
48- runtimes.
48+ runtimes.
0 commit comments