Skip to content

Commit 5de70b6

Browse files
Remove TStrict type
1 parent 39ab348 commit 5de70b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

router/services.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,13 @@ export interface SerializedServerSchemaProtocolv1 {
160160
services: Record<string, SerializedServiceSchemaProtocolv1>;
161161
}
162162

163-
export type TStrict<T extends TSchema> = T;
164-
165163
/**
166164
* Omits compositing symbols from this schema.
167165
* The same approach that was previously used in the deprecated Type.Strict function.
168166
* https://github.com/sinclairzx81/typebox/blob/master/changelog/0.34.0.md#strict
169167
*/
170-
export function Strict<T extends TSchema>(schema: T): TStrict<T> {
171-
return JSON.parse(JSON.stringify(schema)) as TStrict<T>;
168+
export function Strict<T extends TSchema>(schema: T): T {
169+
return JSON.parse(JSON.stringify(schema)) as T;
172170
}
173171

174172
// TODO remove once clients migrate to v2

0 commit comments

Comments
 (0)