diff --git a/packages/type/tests/standard-functions.spec.ts b/packages/type/tests/standard-functions.spec.ts index b64fcecc5..fee697c2b 100644 --- a/packages/type/tests/standard-functions.spec.ts +++ b/packages/type/tests/standard-functions.spec.ts @@ -9,9 +9,9 @@ */ import { test, expect } from '@jest/globals'; -import { ReceiveType, removeTypeName, resolveReceiveType } from '../src/reflection/reflection.js'; +import { ReceiveType, removeTypeName, resolveReceiveType, typeOf } from '../src/reflection/reflection.js'; import { expectEqualType } from './utils.js'; -import { stringifyResolvedType } from '../src/reflection/type.js'; +import { stringifyResolvedType, stringifyType } from '../src/reflection/type.js'; function equalType(a?: ReceiveType, b?: ReceiveType) { const aType = removeTypeName(resolveReceiveType(a)); @@ -44,6 +44,16 @@ test('Omit', () => { equalType, { b: number, c: boolean }>(); }); +test('Omit 2', () => { + interface A { + readonly a: string; + readonly value: string; + } + + type B = Omit; + equalType(); +}); + test('intersection object', () => { type a1 = string & {} type a2 = null & {}