File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments