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;
|