We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
Typescript compilation emit a new import for an inferred type with a wrong path while the type is already imported before at the top of the file.
TypeScript Version: 3.0.3
Search Terms:
Code
import { emailTemplates } from './utils/email'; const defaultOptions = { tokenSecret: 'secret', tokenConfigs: { accessToken: { expiresIn: '90m', }, refreshToken: { expiresIn: '7d', }, }, // Type is inferred here emailTemplates, userObjectSanitizer: (user: User) => user, sendMail, siteUrl: 'http://localhost:3000', };
Expected behavior:
// ... import { EmailTemplateType } from './types/email-template-type'; declare const defaultOptions: { tokenSecret: string; tokenConfigs: { accessToken: { expiresIn: string; }; refreshToken: { expiresIn: string; }; }; emailTemplates: EmailTemplateType; userObjectSanitizer: (user: User) => User; sendMail: (mail: object) => Promise<void>; siteUrl: string; }; // ...
Actual behavior:
// ... import { EmailTemplateType } from './types/email-template-type'; declare const defaultOptions: { tokenSecret: string; tokenConfigs: { accessToken: { expiresIn: string; }; refreshToken: { expiresIn: string; }; }; emailTemplates: import("@accounts/server/src/types/email-templates-type").EmailTemplatesType; userObjectSanitizer: (user: User) => User; sendMail: (mail: object) => Promise<void>; siteUrl: string; }; // ...
How to reproduce:
yarn
yarn setup
yarn compile
packages/server/lib/accounts-server.d.ts
Happy to provide more infos if needed thanks :)
The text was updated successfully, but these errors were encountered:
Looks like compiling your repro with typescript@next is currently blocked by #26978.
typescript@next
Sorry, something went wrong.
@Andy-MS yeah you are right I have this error when I try with the next tag
next
Looks like the error was fixed in 3.1.0-dev.20180921 thanks!
3.1.0-dev.20180921
No branches or pull requests
Description
Typescript compilation emit a new import for an inferred type with a wrong path while the type is already imported before at the top of the file.
TypeScript Version: 3.0.3
Search Terms:
Code
Expected behavior:
Actual behavior:
How to reproduce:
yarn
yarn setup
yarn compile
packages/server/lib/accounts-server.d.ts
to see the errorHappy to provide more infos if needed thanks :)
The text was updated successfully, but these errors were encountered: