Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/jsDeclarationsFunctionsCjs.js.diff

65 lines
1.5 KiB
Diff

--- old.jsDeclarationsFunctionsCjs.js
+++ new.jsDeclarationsFunctionsCjs.js
@@= skipped -113, +113 lines =@@
//// [index.d.ts]
-export function a(): void;
-export function b(): void;
-export namespace b {
- let cat: string;
-}
-export function c(): void;
-export namespace c {
- export { Cls };
-}
-export function d(a: number, b: number): string;
-export function e<T, U>(a: T, b: U): T & U;
-export function f<T>(a: T): T;
-export namespace f {
- import self = f;
- export { self };
-}
-export function i(): void;
-export function j(): void;
-declare class Cls {
-}
+export declare var a: () => void;
+export declare var b: () => void;
+export declare var c: () => void;
+export declare var d: (a: number, b: number) => string;
+export declare var e: <T, U>(a: T, b: U) => T & U;
+export declare var f: <T>(a: T) => T;
+export { g };
+export { hh as h };
+export declare var i: () => void;
+export declare var ii: () => void;
+export declare var jj: () => void;
+export declare var j: () => void;
/**
* @param {{x: string}} a
* @param {{y: typeof module.exports.b}} b
*/
-export function g(a: {
+declare function g(a: {
x: string;
}, b: {
- y: {
- (): void;
- cat: string;
- };
+ y: () => void;
}): void | "";
/**
* @param {{x: string}} a
@@= skipped -39, +28 lines =@@
declare function hh(a: {
x: string;
}, b: {
- y: {
- (): void;
- cat: string;
- };
+ y: () => void;
}): void | "";
-export { hh as h, i as ii, j as jj };