Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/jsDeclarationsFunctionJSDoc(target=es2015).js.diff

37 lines
850 B
Diff

--- old.jsDeclarationsFunctionJSDoc(target=es2015).js
+++ new.jsDeclarationsFunctionJSDoc(target=es2015).js
@@= skipped -81, +81 lines =@@
* @param {number} a
* @param {string} b
*/
-export function foo(a: number, b: string): void;
+export declare function foo(a: number, b: string): void;
/**
* Legacy - DO NOT USE
*/
-export class Aleph {
+export declare class Aleph {
+ /**
+ * Field is always null
+ */
+ field: any;
/**
* Impossible to construct.
* @param {Aleph} a
@@= skipped -12, +16 lines =@@
*/
constructor(a: Aleph, b: null);
/**
- * Field is always null
- */
- field: any;
- /**
* Doesn't actually do anything
* @returns {void}
*/
@@= skipped -12, +8 lines =@@
/**
* Not the speed of light
*/
-export const c: 12;
+export declare const c = 12;