question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TsCustomBaseAttribute doesn't generate 'import-part'

See original GitHub issue

From @salmin89 on June 21, 2018 8:58

SomeClass.cs

using TypeGen.Core.TypeAnnotations;

namespace MyProject.Types
{
    [TsIgnoreBase]
    [TsCustomBase("CustomBase")]
    [ExportTsInterface]
    public class SomeClass: CustomBase{ }
}

CustomBase.cs

using TypeGen.Core.TypeAnnotations;

namespace MyProject.Types
{
    [ExportTsInterface]
    public class CustomBase
    {
        public string name { get; set; }
        public string url { get; set; }
        [TsOptional]
        public string thumbnail { get; set; }
    }
}

SomeClass.ts

/**
 * This is a TypeGen auto-generated file.
 * Any changes made to this file can be lost when this file is regenerated.
 */

export interface SomeClass extends CustomBase{

}

I’m missing import { CustomBase} from "./CustomBase"; from SomeClass.ts

Copied from original issue: jburzynski/TypeGenDocs#1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jburzynskicommented, Jun 22, 2018

I’ll make next release in a couple of days and I’ll add ImportPath to CustomBaseAttribute. I’ll keep you updated on the progress in this issue.

0reactions
jburzynskicommented, Jul 5, 2018

closed due to inactivity

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found