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
"specifier", "relative path"
package.json
imports
https://github.com/xlianghang/ts-specifier-bug
//src/main.ts import { PartialType } from './utils'; class Common {} export class Sub extends PartialType(Common) { id: string; }
// src/utils/index.ts import { MyType, MyReturnType } from './type-helpers'; export function PartialType<T>(classRef: MyType<T>) { abstract class PartialClassType { constructor() {} } return PartialClassType as MyReturnType; }
// src/utils/type-helpers.ts export type MyReturnType = { new (...args: any[]): any; }; export interface MyType<T = any> extends Function { new (...args: any[]): T; }
The dist folder is not the root directory, so do not import from src
dist
src
Import from a relative path
Compilation fails in the MacOS, but is expected to behave in the https://stackblitz.com/~/github.com/xlianghang/ts-specifier-bug
π» MacOS 14.3οΌApple M2 Max
The text was updated successfully, but these errors were encountered:
Got related problems, tRPC types inference in monorepo are not working since installing 5.4.0-dev.20231222.
I got any instead of my inferred types.
any
π» MacOS 14.3.1οΌApple M3
Sorry, something went wrong.
This is the second time a .d.ts emit bug has been traced to #55015: #57926 (comment)
.d.ts
Successfully merging a pull request may close this issue.
π Search Terms
"specifier", "relative path"
π Version & Regression Information
package.json
imports
fieldΒ #55015β― Playground Link
https://github.com/xlianghang/ts-specifier-bug
π» Code
π Actual behavior
The
dist
folder is not the root directory, so do not import fromsrc
π Expected behavior
Import from a relative path
Additional information about the issue
Compilation fails in the MacOS, but is expected to behave in the https://stackblitz.com/~/github.com/xlianghang/ts-specifier-bug
π» MacOS 14.3οΌApple M2 Max
The text was updated successfully, but these errors were encountered: