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
When enabled, the client doesn't throw errors when a non-200 response is received from the server. Instead, the response is wrapped in an [`ApiResponse`](packages/core-utilities/fetcher/src/APIResponse.ts).
81
-
82
-
```typescript
83
-
const response =awaitclient.callEndpoint(...);
84
-
if (response.ok) {
85
-
console.log(response.body)
86
-
} else {
87
-
console.error(respons.error)
88
-
}
89
-
```
90
-
</ParamField>
91
-
92
-
<ParamFieldpath="namespaceExport"type="string">
93
-
Customizes the exported namespace and client names. By default, names are based on the organization and API names in the Fern Definition.
When enabled, the generator outputs raw TypeScript files. When disabled (the default), outputs .js and d.ts files. Note: Only applies when dumping code locally.
By default, the client will throw an error if the response from the server doesn't match the expected type. If enabled, the client will log issues using console.warn and return the data casted to the expected response type.
Specify extra dependencies in the generated package.json. Useful when utilizing .fernignore to supplement the generated client with custom code. Note: Only applies when publishing to Github.
When enabled, no serialization/deserialization code is generated. The client uses JSON.parse() and JSON.stringify() instead of the default serde layer that provides validation and complex type support.
0 commit comments