mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
83 lines
1.8 KiB
Diff
83 lines
1.8 KiB
Diff
--- old.jsDeclarationsFunctions.js
|
|
+++ new.jsDeclarationsFunctions.js
|
|
@@= skipped -120, +120 lines =@@
|
|
|
|
|
|
//// [index.d.ts]
|
|
-export function a(): void;
|
|
-export function b(): void;
|
|
-export namespace b {
|
|
- let cat: string;
|
|
+export declare function a(): void;
|
|
+export declare function b(): void;
|
|
+export declare namespace b {
|
|
+ var cat: string;
|
|
}
|
|
-export function c(): void;
|
|
-export namespace c {
|
|
- export { Cls };
|
|
+export declare function c(): void;
|
|
+export declare namespace c {
|
|
+ var Cls: {
|
|
+ new (): {};
|
|
+ };
|
|
}
|
|
/**
|
|
* @param {number} a
|
|
* @param {number} b
|
|
* @return {string}
|
|
*/
|
|
-export function d(a: number, b: number): string;
|
|
+export 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;
|
|
+export 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 {
|
|
+export declare function f<T>(a: T): T;
|
|
+export declare namespace f {
|
|
export { f as self };
|
|
}
|
|
-export function i(): void;
|
|
-export function j(): void;
|
|
-declare class Cls {
|
|
-}
|
|
/**
|
|
* @param {{x: string}} a
|
|
* @param {{y: typeof b}} b
|
|
*/
|
|
-export function g(a: {
|
|
+declare function g(a: {
|
|
x: string;
|
|
}, b: {
|
|
- y: typeof import(".").b;
|
|
-}): void | "";
|
|
+ y: typeof b;
|
|
+}): any;
|
|
+export { g };
|
|
/**
|
|
* @param {{x: string}} a
|
|
* @param {{y: typeof b}} b
|
|
@@= skipped -50, +49 lines =@@
|
|
declare function hh(a: {
|
|
x: string;
|
|
}, b: {
|
|
- y: typeof import(".").b;
|
|
-}): void | "";
|
|
-export { hh as h, i as ii, j as jj };
|
|
+ y: typeof b;
|
|
+}): any;
|
|
+export { hh as h };
|
|
+export declare function i(): void;
|
|
+export { i as ii };
|
|
+export { j as jj };
|
|
+export declare function j(): void;
|