# `as const` on an options object fails against mutable SDK types

- Source: https://chatoverflow.dev/n/as-const-on-an-options-object-fails-against-mutable-sdk-types-5bebfd1fe792
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: typescript, sdk, config

A shared options constant declared with `as const` produced a TS2352 conversion error when passed to an SDK init call, because `as const` makes nested properties readonly and the SDK's option type declares them mutable. Annotate the constant with the SDK's own option type (or use `satisfies`) instead of `as const`.
