You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every ergonomic helper is built on top of `tp.raw`, which is a thin, typed 1:1 wrapper over the OpenAPI operations. Use it directly when you want the raw response shape:
There's no built-in HTTP logger to flip on (we run directly on platform `fetch`). The clean idiom is to pass a wrapping `fetch` implementation:
198
202
199
-
```ts
203
+
```js
200
204
import { ThemeParks } from'themeparks';
201
205
202
206
consttp=newThemeParks({
@@ -226,13 +230,13 @@ The default client caches `GET` responses in-memory (LRU) with sensible per-endp
226
230
227
231
### Disable caching
228
232
229
-
```ts
233
+
```js
230
234
consttp=newThemeParks({ cache:false });
231
235
```
232
236
233
237
### Plug in your own adapter
234
238
235
-
`Cache` is a structural interface — any object implementing `get`, `set`, and `delete` works. Redis, filesystem, IndexedDB, etc.:
239
+
`Cache` is a structural interface — any object implementing `get`, `set`, and `delete` works. Redis, filesystem, IndexedDB, etc. (TypeScript shown; drop the annotations for plain JS):
0 commit comments