54096bdb96
* Test where relative import isnt ideal in the declaration emit * use project relative preference for declaration emit Fixes #39117 * Fix incorrect path matching when calculating module specifier * Use correct baseUrl for the module specifier
59 lines
2.4 KiB
Plaintext
59 lines
2.4 KiB
Plaintext
=== tests/cases/compiler/packages/core/src/index.d.ts ===
|
|
export * from "./utils";
|
|
export { default as SvgIcon } from "./SvgIcon";
|
|
>default : Symbol(default, Decl(SvgIcon.d.ts, 7, 37))
|
|
>SvgIcon : Symbol(SvgIcon, Decl(index.d.ts, 1, 8))
|
|
|
|
=== tests/cases/compiler/packages/core/src/SvgIcon.d.ts ===
|
|
import { StyledComponentProps } from "@ts-bug/styles";
|
|
>StyledComponentProps : Symbol(StyledComponentProps, Decl(SvgIcon.d.ts, 0, 8))
|
|
|
|
export interface SvgIconProps extends StyledComponentProps<"root"> {
|
|
>SvgIconProps : Symbol(SvgIconProps, Decl(SvgIcon.d.ts, 0, 54))
|
|
>StyledComponentProps : Symbol(StyledComponentProps, Decl(SvgIcon.d.ts, 0, 8))
|
|
|
|
children?: string[];
|
|
>children : Symbol(SvgIconProps.children, Decl(SvgIcon.d.ts, 1, 68))
|
|
}
|
|
export interface SomeInterface {
|
|
>SomeInterface : Symbol(SomeInterface, Decl(SvgIcon.d.ts, 3, 1))
|
|
|
|
myProp: string;
|
|
>myProp : Symbol(SomeInterface.myProp, Decl(SvgIcon.d.ts, 4, 32))
|
|
}
|
|
declare const SvgIcon: SomeInterface;
|
|
>SvgIcon : Symbol(SvgIcon, Decl(SvgIcon.d.ts, 7, 13))
|
|
>SomeInterface : Symbol(SomeInterface, Decl(SvgIcon.d.ts, 3, 1))
|
|
|
|
export default SvgIcon;
|
|
>SvgIcon : Symbol(SvgIcon, Decl(SvgIcon.d.ts, 7, 13))
|
|
|
|
=== tests/cases/compiler/packages/core/src/utils.d.ts ===
|
|
import SvgIcon from "./SvgIcon";
|
|
>SvgIcon : Symbol(SvgIcon, Decl(utils.d.ts, 0, 6))
|
|
|
|
export function createSvgIcon(path: string, displayName: string): typeof SvgIcon;
|
|
>createSvgIcon : Symbol(createSvgIcon, Decl(utils.d.ts, 0, 32))
|
|
>path : Symbol(path, Decl(utils.d.ts, 1, 30))
|
|
>displayName : Symbol(displayName, Decl(utils.d.ts, 1, 43))
|
|
>SvgIcon : Symbol(SvgIcon, Decl(utils.d.ts, 0, 6))
|
|
|
|
=== tests/cases/compiler/packages/styles/src/index.d.ts ===
|
|
export interface StyledComponentProps<ClassKey extends string> {
|
|
>StyledComponentProps : Symbol(StyledComponentProps, Decl(index.d.ts, 0, 0))
|
|
>ClassKey : Symbol(ClassKey, Decl(index.d.ts, 0, 38))
|
|
|
|
classes?: Record<ClassKey, string>;
|
|
>classes : Symbol(StyledComponentProps.classes, Decl(index.d.ts, 0, 64))
|
|
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
|
>ClassKey : Symbol(ClassKey, Decl(index.d.ts, 0, 38))
|
|
}
|
|
|
|
=== tests/cases/compiler/packages/lab/src/index.ts ===
|
|
import { createSvgIcon } from "@ts-bug/core/utils";
|
|
>createSvgIcon : Symbol(createSvgIcon, Decl(index.ts, 0, 8))
|
|
|
|
export default createSvgIcon("Hello", "ArrowLeft");
|
|
>createSvgIcon : Symbol(createSvgIcon, Decl(index.ts, 0, 8))
|
|
|