Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8683591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:05:12+00:00 2026-06-12T22:05:12+00:00

I’m developing Win8 app with TypeScript. To compile my typescript code, I added winrt.d.ts

  • 0

I’m developing Win8 app with TypeScript.

To compile my typescript code, I added winrt.d.ts and winjs.d.ts then referenced them
using:

<reference path="winrt.d.ts" static="true" />
<reference path="winjs.d.ts" static="true" />

Compile & build succeeded but IDE’s intelliSense was being very slow. I simply opened winrt.d.ts and checked the file. The file has 18,770 lines which is really huge file to compile on the fly.

Are there any options or methods to reference those huge definition file without compile again just like lib.d.ts?

This slowness seriously hurts my TypeScript selection.

UPDATED:

On the current compiler version (0.8.0), there is no solution.
Hope to see best performance gain in near future release.

UPDATED:

Here is my simply hack to boost dev. performance.
I simply created winrt.compact.d.ts.
Then copy only part of namespaces which are actually used
and save the file.

Fortunately the file(winrt.d.ts) looks like being generated
from several declaration files. So each namespace is
clearly separated from others.
It is much easier to make compact version for WinRT.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:05:13+00:00Added an answer on June 12, 2026 at 10:05 pm

    Correct me if I’m wrong, but I don’t think that lib.d.ts is being treated in any special way by the compiler. I took a look at the source code and here is the snippet that deals with lib.d.ts:

    if(this.compilationSettings.useDefaultLib) {
        var compilerFilePath = this.ioHost.getExecutingFilePath();
        var binDirPath = this.ioHost.dirName(compilerFilePath);
        var libStrPath = this.ioHost.resolvePath(binDirPath + "\\lib.d.ts");
        code = new TypeScript.SourceUnit(libStrPath, null);
        this.compilationEnvironment.code.push(code);
    }     
    

    If the user requests lib.d.ts to be included, it is simply added to the compilation environment as the first piece of code to compile. All other source files (stored in opts.unnamed are added in exactly the same way:

    for(var i = 0; i < opts.unnamed.length; i++) {
        code = new TypeScript.SourceUnit(opts.unnamed[i], null);
        this.compilationEnvironment.code.push(code);
    }  
    

    So if lib.d.ts is not being treated in a special way then this is also not possible for other (declaration) files. Also, on my system lib.d.ts has 7,677 lines, which is way less than the reported 18,770 for winrt.d.ts, so it may be that the sum of all the lines is just too much for the compiler to achieve acceptable speed.

    Other than that, my only idea is that “something else” is causing the slowdown of your machine. If you provide me with a link to the libraries and a snippet of your code, I can at least measure how long a compilation run takes on my system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.