File: declarationEmitPathMappingMonorepo2.js

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (41 lines) | stat: -rw-r--r-- 1,180 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//// [tests/cases/compiler/declarationEmitPathMappingMonorepo2.ts] ////

//// [index.d.ts]
export * from "./utils";
export { default as SvgIcon } from "./SvgIcon";

//// [SvgIcon.d.ts]
import { StyledComponentProps } from "@ts-bug/styles";
export interface SvgIconProps extends StyledComponentProps<"root"> {
    children?: string[];
}
export interface SomeInterface {
    myProp: string;
}
declare const SvgIcon: SomeInterface;
export default SvgIcon;

//// [utils.d.ts]
import SvgIcon from "./SvgIcon";
export function createSvgIcon(path: string, displayName: string): typeof SvgIcon;

//// [index.d.ts]
export interface StyledComponentProps<ClassKey extends string> {
    classes?: Record<ClassKey, string>;
}

//// [index.ts]
import { createSvgIcon } from "@ts-bug/core/utils";
export default createSvgIcon("Hello", "ArrowLeft");


//// [index.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("@ts-bug/core/utils");
exports.default = (0, utils_1.createSvgIcon)("Hello", "ArrowLeft");


//// [index.d.ts]
declare const _default: import("@ts-bug/core/SvgIcon").SomeInterface;
export default _default;