mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
94 lines
2.1 KiB
Diff
94 lines
2.1 KiB
Diff
--- old.jsDeclarationsExportDefinePropertyEmit.js
|
|
+++ new.jsDeclarationsExportDefinePropertyEmit.js
|
|
@@= skipped -113, +113 lines =@@
|
|
|
|
|
|
//// [index.d.ts]
|
|
-export function a(): void;
|
|
-export function b(): void;
|
|
-export namespace b {
|
|
- let cat: string;
|
|
-}
|
|
+export declare var a: () => void;
|
|
+export declare var b: () => void;
|
|
+declare const _exported: typeof d;
|
|
+export { _exported as d };
|
|
+declare const _exported_1: typeof e;
|
|
+export { _exported_1 as e };
|
|
+declare const _exported_2: typeof f;
|
|
+export { _exported_2 as f };
|
|
+declare const _exported_3: typeof g;
|
|
+export { _exported_3 as g };
|
|
+export declare var h: typeof hh;
|
|
+export declare var i: () => void;
|
|
+export declare var ii: () => void;
|
|
+export declare var jj: () => void;
|
|
+export declare var j: () => void;
|
|
/**
|
|
* @param {number} a
|
|
* @param {number} b
|
|
* @return {string}
|
|
*/
|
|
-export function d(a: number, b: number): string;
|
|
+declare function d(a: number, b: number): string;
|
|
/**
|
|
* @template T,U
|
|
* @param {T} a
|
|
* @param {U} b
|
|
* @return {T & U}
|
|
*/
|
|
-export function e<T, U>(a: T, b: U): T & U;
|
|
+declare function e<T, U>(a: T, b: U): T & U;
|
|
/**
|
|
* @template T
|
|
* @param {T} a
|
|
*/
|
|
-export function f<T>(a: T): T;
|
|
-export namespace f {
|
|
- /**
|
|
- * @template T
|
|
- * @param {T} a
|
|
- */
|
|
- function self<T>(a: T): T;
|
|
-}
|
|
-/**
|
|
- * @param {{x: string}} a
|
|
- * @param {{y: typeof module.exports.b}} b
|
|
- */
|
|
-export function g(a: {
|
|
- x: string;
|
|
-}, b: {
|
|
- y: () => void;
|
|
-}): void | "";
|
|
-/**
|
|
- * @param {{x: string}} a
|
|
- * @param {{y: typeof module.exports.b}} b
|
|
- */
|
|
-export function h(a: {
|
|
- x: string;
|
|
-}, b: {
|
|
- y: () => void;
|
|
-}): void | "";
|
|
-export function i(): void;
|
|
-export function ii(): void;
|
|
-export function jj(): void;
|
|
-export function j(): void;
|
|
+declare function f<T>(a: T): T;
|
|
+/**
|
|
+ * @param {{x: string}} a
|
|
+ * @param {{y: typeof module.exports.b}} b
|
|
+ */
|
|
+declare function g(a: {
|
|
+ x: string;
|
|
+}, b: {
|
|
+ y: () => void;
|
|
+}): void | "";
|
|
+/**
|
|
+ * @param {{x: string}} a
|
|
+ * @param {{y: typeof module.exports.b}} b
|
|
+ */
|
|
+declare function hh(a: {
|
|
+ x: string;
|
|
+}, b: {
|
|
+ y: () => void;
|
|
+}): void | "";
|