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

Semicolons required? #38

Open
ghost opened this issue Oct 25, 2015 · 1 comment
Open

Semicolons required? #38

ghost opened this issue Oct 25, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 25, 2015

I don't use semicolons as line terminators in TS. Typson breaks without them. Probably shouldn't. Current typescript compiler handles this file fine.

@ghost
Copy link
Author

ghost commented Oct 25, 2015

ExpenseModel.ts

/**
 * Date in a string format. Basically can handle anything moment() can handle.
 */
type DateString = string

/**
 * Data Model for Expense report header inbound payload
 */
interface ExpenseHeader {

    /**
     * RefNo
     */
    tranid : string

    /**
     * FullName
     */
    entityid :string

    /**
     * TBD
     */
    trandate : DateString

    /**
     * SubmitDate
     */
    custbody_submitdate

    /**
     * expense line items
     */
    lines : Array<ExpenseLine>
}


interface ExpenseLine {
    /**
     * ExpenseDate
     */
    expensedate : DateString

    /**
     * Descr
     */
    memo: string

    /**
     * Cost
     */
    foreignamount : number,

    /**
     * Currency
     */
    currency : string,

    /**
     * Total
     */
    amount : number

    /**
     * ChargeTo
     */
    custcol_somefieldTDB: string

    /**
     * Customer
     */
    custcol_somecustomer: string

    /**
     * AttachmentID
     */
    custcol_attachment_id: string

    /**
     * tiBillable
     */
    isBillable : boolean

    /**
     * SegmentCode
     *
     */
    expenseCategory: string
}

$typson schema ExpenseModel.ts

(node) sys is deprecated. Use util instead.
ExpenseModel.ts(4,6): error TS1005: ';' expected.

/home/shawn/node_modules/typson/node_modules/q/q.js:126
throw e;
^
undefined

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

0 participants