diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b531229d9..65c2f584c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: runs-on: buildjet-2vcpu-ubuntu-2004 strategy: matrix: - node-version: [ 18.x ] + node-version: [18.17.0] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -97,7 +97,7 @@ jobs: runs-on: buildjet-2vcpu-ubuntu-2004 strategy: matrix: - node-version: [ 18.x ] + node-version: [18.17.0] postgres-version: [ 14 ] services: postgres: @@ -145,7 +145,7 @@ jobs: runs-on: buildjet-2vcpu-ubuntu-2004 strategy: matrix: - node-version: [ 18.x ] + node-version: [18.17.0] mysql-version: [ 8.0 ] services: mysql: @@ -192,7 +192,7 @@ jobs: runs-on: buildjet-2vcpu-ubuntu-2004 strategy: matrix: - node-version: [ 18.x ] + node-version: [18.17.0] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} @@ -229,7 +229,7 @@ jobs: runs-on: buildjet-2vcpu-ubuntu-2004 strategy: matrix: - node-version: [ 18.x ] + node-version: [18.17.0] mongo-version: [ 4.0 ] services: # this is used for the simple-auth test diff --git a/packages/type/src/reflection/type.ts b/packages/type/src/reflection/type.ts index a698f2edf..730389bba 100644 --- a/packages/type/src/reflection/type.ts +++ b/packages/type/src/reflection/type.ts @@ -601,7 +601,7 @@ export function isSameType(a: Type, b: Type, stack: StackEntry[] = []): boolean try { if (a.kind !== b.kind) return false; - if (a.typeName !== b.typeName) return false; + if (a.typeName && b.typeName && a.typeName !== b.typeName) return false; if (a.kind === ReflectionKind.infer || b.kind === ReflectionKind.infer) return false; if (a.kind === ReflectionKind.literal) return a.literal === (b as TypeLiteral).literal;