diff --git a/src/packages/client/fixtures/blog/main.ts b/src/packages/client/fixtures/blog/main.ts index 302341936219..87f7963c0350 100644 --- a/src/packages/client/fixtures/blog/main.ts +++ b/src/packages/client/fixtures/blog/main.ts @@ -1,4 +1,4 @@ -import { Prisma, PrismaClient } from './@prisma/client' +import { PrismaClient } from './@prisma/client' const prisma = new PrismaClient({ log: [ @@ -14,14 +14,6 @@ async function main() { console.log({ q }) }) - // await prisma.user.create({ - // data: { - // email: 'a2@a.de', - // age: 9, - // name: 'bob', - // }, - // }) - const res = await prisma.user.groupBy({ by: ['age', 'email'], avg: { @@ -34,8 +26,6 @@ async function main() { { email: '', name: { - // contains: '', - // avg: {} min: {}, }, age: { @@ -56,23 +46,6 @@ async function main() { }, }) - type A = [1, 2, 3] - type B = { - a: 1 - } - type C = 1 - type D = '' - - type IsObject = T extends Array - ? 0 - : T extends object - ? 1 - : 0 - - type Ya = IsObject - - // res.AND.NOT. - console.log(res) prisma.$disconnect() diff --git a/src/packages/client/package.json b/src/packages/client/package.json index a05573c81136..151f3b10298e 100644 --- a/src/packages/client/package.json +++ b/src/packages/client/package.json @@ -113,7 +113,6 @@ "strip-indent": "3.0.0", "ts-jest": "26.4.4", "ts-node": "9.1.1", - "ts-toolbelt": "^8.0.7", "tsd": "0.14.0", "typescript": "4.1.3" }, diff --git a/src/pnpm-lock.yaml b/src/pnpm-lock.yaml index ae97930a3b76..5ac39e4d19ce 100644 --- a/src/pnpm-lock.yaml +++ b/src/pnpm-lock.yaml @@ -207,7 +207,6 @@ importers: strip-indent: 3.0.0 ts-jest: 26.4.4_jest@26.6.3+typescript@4.1.3 ts-node: 9.1.1_typescript@4.1.3 - ts-toolbelt: 8.0.7 tsd: 0.14.0 typescript: 4.1.3 specifiers: @@ -267,7 +266,6 @@ importers: strip-indent: 3.0.0 ts-jest: 26.4.4 ts-node: 9.1.1 - ts-toolbelt: ^8.0.7 tsd: 0.14.0 typescript: 4.1.3 packages/debug: @@ -8562,7 +8560,7 @@ packages: bs-logger: 0.2.6 buffer-from: 1.1.1 fast-json-stable-stringify: 2.1.0 - jest: 26.6.3 + jest: 26.6.3_ts-node@9.1.1 jest-util: 26.6.2 json5: 2.1.3 lodash.memoize: 4.1.2 @@ -8597,10 +8595,6 @@ packages: typescript: '>=2.7' resolution: integrity: sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg== - /ts-toolbelt/8.0.7: - dev: true - resolution: - integrity: sha512-KICHyKxc5Nu34kyoODrEe2+zvuQQaubTJz7pnC5RQ19TH/Jged1xv+h8LBrouaSD310m75oAljYs59LNHkLDkQ== /tsd/0.14.0: dependencies: eslint-formatter-pretty: 4.0.0