Skip to content

Commit b113e01

Browse files
estrattonbaileymatthieusieben
authored andcommitted
s/code base/codebase
1 parent cfc85f1 commit b113e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: blog/2025-01-13-typescript-sdk-release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ The root of the issue here is that the `is*` utility methods perform type castin
266266
1. Alter the implementation to actually validate the object's structure. This is a non-breaking change that has a negative impact on performance.
267267
2. Alter the function signature to describe what the function actually does. This is a breaking change because TypeScript would start (rightfully) returning lots of errors in places where these functions are used.
268268

269-
Because this release introduces other breaking changes, and because adapting our own code base to this change showed it made more sense, we decided to adopt the latter option.
269+
Because this release introduces other breaking changes, and because adapting our own codebase to this change showed it made more sense, we decided to adopt the latter option.
270270

271271
In lots of cases where data needs to be discriminated, this change in the signature of the `is*` function will actually not cause any issue when upgrading the version of the SDK. This is the case for example when working with data obtained from the API. Because an API is a "contract" between a server and a client, the data returned by the server is "guaranteed" to be valid. In these cases, the `is*` utility methods provide a convenient way to discriminate between valid values.
272272

0 commit comments

Comments
 (0)