mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
470 B
Diff
15 lines
470 B
Diff
--- old.declarationEmitExpandoWithGenericConstraint.js
|
|
+++ new.declarationEmitExpandoWithGenericConstraint.js
|
|
@@= skipped -35, +35 lines =@@
|
|
readonly a: p;
|
|
readonly b: p;
|
|
}
|
|
-export declare const Point: {
|
|
- (x: number, y: number): Point;
|
|
- zero(): Point;
|
|
-};
|
|
+export declare function Point(x: number, y: number): Point;
|
|
+export declare namespace Point {
|
|
+ var zero: () => Point;
|
|
+}
|
|
export declare const Rect: <p extends Point>(a: p, b: p) => Rect<p>;
|