Skip to content

Can't compile the generator #1

@pdonadeo

Description

@pdonadeo

I'd like to generate type definitions for the Alloy library so, before, I'm trying to compile your generator, with no luck. The command:

$ tsc -m commonjs -t ES5 -sourcemap References.ts

dies with this error message:

/Users/pdonadeo/git/titanium-typescript/Generator.ts(19,19): error TS2094: The property 'Join' does not exist on value of type 'String'.
/Users/pdonadeo/git/titanium-typescript/Generator.ts(27,19): error TS2094: The property 'Indent' does not exist on value of type 'String'.
/Users/pdonadeo/git/titanium-typescript/Generator.ts(145,54): error TS2094: The property 'Indent' does not exist on value of type 'String'.
/Users/pdonadeo/git/titanium-typescript/Generator.ts(151,68): error TS2094: The property 'Indent' does not exist on value of type 'String'.
/Users/pdonadeo/git/titanium-typescript/Generator.ts(205,43): error TS2094: The property 'Indent' does not exist on value of type 'String'.
/Users/pdonadeo/git/titanium-typescript/Generator.ts(210,41): error TS2094: The property 'Indent' does not exist on value of type 'String'.
/Users/pdonadeo/git/titanium-typescript/Generator.ts(422,7): error TS2082: Supplied parameters do not match any signature of call target:
    Type 'TiReturnType' is missing property 'length' from type '_.List<TypeField>'.
/Users/pdonadeo/git/titanium-typescript/Generator.ts(422,7): error TS2087: Could not select overload for 'call' expression.

Any suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions