@ 261027.7 · fetching

250721.1 · 8b6498dac2ebef1d1103e25a0b86fbb4cfa3145f

test: strip private properties overload

reading declarations

Changes to test/index.test.js. All files

test/index.test.js

@@ -312,3 +312,17 @@ test("should preserve import/export type declarations", (t) => { 	const { code } = transformSync(inputCode); 	t.assert.snapshot(code); });++test("should strip correctly private properties overload", (t) => {+	const inputCode = `class Private {+		#foo(bar: string): string;+		#foo(bar: number): number;+		#foo(bar: string | number): string | number;+		#foo(bar: string | number): string | number {+			return bar;+		}+	}`;++	const { code } = transformSync(inputCode);+	t.assert.snapshot(code);+});