Skip to content

Commit d01c9f3

Browse files
committed
fix: spelling of ExtendedJSONTypes
1 parent e21761c commit d01c9f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export type SerializeJSONObject<T> = {
117117
* }
118118
* ```
119119
*/
120-
export interface ExtendJSONTypes {}
120+
export interface ExtendedJSONTypes {}
121121

122122
/**
123123
* Types that are not allowed in JSON serialization by default.
@@ -130,8 +130,8 @@ export type NonAllowedJSTypes = Map<any, any> | Set<any>
130130
* interface extension point.
131131
*/
132132
export type ForcefullyAllowedTypes = {
133-
[K in keyof ExtendJSONTypes]: ExtendJSONTypes[K]
134-
}[keyof ExtendJSONTypes]
133+
[K in keyof ExtendedJSONTypes]: ExtendedJSONTypes[K]
134+
}[keyof ExtendedJSONTypes]
135135

136136
/**
137137
* Helper type to recursively serialize types, handling primitives, arrays, and objects.

tests/types.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { ProfileTransformer } from './fixtures/transformers/profile.ts'
2222
import { type InferVariants, type InferData, type ResourceData } from '../src/types.ts'
2323

2424
declare module '../src/types.ts' {
25-
interface ExtendJSONTypes {
25+
interface ExtendedJSONTypes {
2626
bigInt: BigInt
2727
}
2828
}

0 commit comments

Comments
 (0)