Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing letters in formatted file #74

Closed
xiamx opened this issue Feb 8, 2017 · 3 comments
Closed

Missing letters in formatted file #74

xiamx opened this issue Feb 8, 2017 · 3 comments

Comments

@xiamx
Copy link
Contributor

xiamx commented Feb 8, 2017

Hi,

We use typescript-formatter as an essential building block for Schemats. We recently discovered that the formatted output from typescript-formatter would miss some letters in the 3rd line of the output. Some discussion around this happened on SweetIQ/schemats#37

I've created an example isolating the issue.

Input file ab.ts

            /**
             * AUTO-GENERATED FILE @ 2016-12-07 13:17:46 - DO NOT EDIT!
             *
             * This file was generated with schemats node package:
             * $ schemats generate -c postgres://username:password@localhost/test -t users -o ./test/osm.ts
             *
             * Re-run the command above.
             */

    
        export namespace cta_situationcompte_scoFields {
        export type sco_id = number;
export type sco_total_debit = number;
export type sco_total_credit = number;
export type sco_nb_ecritures = number;
export type pst_id = number;
export type cpt_id = number;

        }
    
        

Output from tsfmt

/**
 * AUTO-GENERATED FILE @ 2016-12-07 13:17:46 - DO NOT EDIT!
 *
 * This file was generated with schemats node package:
 * $ schemats generate -c postgres://username:password@localhost/test -t users -o ./test/osm.ts
 *
 * Re-run the command above.
 */


export namespace cta_situationcompte_scoFields {
    export type sco_id = number;
    ex type sco_total_debit = number;
    export type sco_total_credit = number;
    export type sco_nb_ecritures = number;
    export type pst_id = number;
    export type cpt_id = number;

}

On the 3rd line of the output there's missing letter for the token export

Please help us :)

@xiamx
Copy link
Contributor Author

xiamx commented Feb 8, 2017

A fix is proposed in #75

@vvakame
Copy link
Owner

vvakame commented Feb 10, 2017

thanks!
I just published v4.1.1.

@vvakame vvakame closed this as completed Feb 10, 2017
@xiamx
Copy link
Contributor Author

xiamx commented Feb 10, 2017

Thanks for the quick release! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants