question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

default-index.d.ts is outdated

See original GitHub issue

https://github.com/prisma/prisma/blob/master/src/packages/client/scripts/default-index.d.ts is outdated in comparison to the fully generated version:

  • Code example in docs comment
  • Documentation link in docs comment
  • Possibly missing namespace for property dmmf?
  • Line breaks for PromiseType and PromiseReturnType

Found via comparing node_modules\.prisma\client\index.d.ts in a project before and after generating a Client the first time.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kiilycommented, Jan 3, 2022

This seems to be working nicely for me:

  1. Import Prisma namespace import { Prisma } from "@prisma/client"; - the namespace itself seems to be a named export
  2. Use as shown in the docs but from the namespace Prisma.PromiseReturnType

🙏

1reaction
pantharshit00commented, Jan 3, 2022

@jasonsilvers Sounds unrelated. Can you please open a new issue with the usage which you are doing?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript error in bridge.d.ts and analytics.d.ts #11 - GitHub
I recently stumbled upon the following error when running tsc in my project: node_modules/@segment/analytics-react-native/build/esm/analytics.d.
Read more >
TypeScript typings give me "index.d.ts is not a module"
The index.d.ts file indeed is not a module, it just references two other files with interfaces in them. So I thought to remove...
Read more >
How Jotai Specifies Package Entry Points - Daishi Kato's blog
Old Node.js works with this and maybe old bundlers do too. ... far as I understand, tsc looks for the same file name...
Read more >
Typescript | Kibana Guide [7.17] - Elastic
Every project emits public interfaces in the form of d.ts type ... how your changes affect tsc compiler performance with node --max-old-space-size=4096 ....
Read more >
dts-umd-webpack-plugin - npm Package Health Analysis - Snyk
Configuration. First, import your plugin in old way const DefinitionBundlePlugin = require('dts-umd-webpack-plugin').DefinitionBundlePlugin;.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found