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 8830379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:04:20+00:00 2026-06-14T08:04:20+00:00

Given the following: /Admin/dialog/start.ts /// <reference path=file1.ts /> /// <reference path=file2.ts /> module Admin.dialog

  • 0

Given the following:

/Admin/dialog/start.ts
/// <reference path="file1.ts" />
/// <reference path="file2.ts" />
module Admin.dialog {
    export function x() { };
    Admin.dialog.y();
    Admin.dialog.z();
}

/Admin/dialog/file1.ts
module Admin.dialog {
    export function y() { };
}

/Admin/dialog/file2.ts   
module Admin.dialog {
    export function z() { };
}

Is there some way that I could shorten the references or a way that I could declare in
another file the functions y() and z() so I would not have to refer to many reference
paths in the file start.ts?

  • 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-14T08:04:22+00:00Added an answer on June 14, 2026 at 8:04 am

    For our current project we have one global .ts file that currently has 79 different reference paths in it. For the sake of this answer call it Global.ts

    Then in our source files we have just 1 reference at the top, to Global.ts, and that in itself references everything else we need and it has worked fine so far.

    Sometimes we need to reference Global.ts and a specific ts file in order for Visual Studio code-insight to work fully, but not all the time. We put this down to the immaturity of the VS TypeScript extension, as the code still builds fine, it’s just the VS completion that goes a bit awry.

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

Sidebar

Related Questions

Given the following code: $(.force-selection).blur(function() { var value = $('matched-item').val(); //check if the input's
Given the following code: function Person(firstName, lastName) { this.FirstName = firstName; this.LastName = lastName;
Given the following routes.rb file: # Add Admin section routes map.namespace :admin do |admin|
Given the following XML file: <users> <user name=admin password=foobar roles=Admin,Guest /> <user name=guest password=foobar
My features file looks at this: Given there are the following users: | email
Given the following: class User; attr_accessor :roles; end module RegisteredUser def default_context Submission end
Lets consider the following situation. There is products_controller which can be accessed from Admin
// given following array: $data = array( 0=>array( data=>object1, col=>array( 0=>array( data=>object2, col=>array( 0=>array(
Given following array: var arr = [undefined, undefined, 2, 5, undefined, undefined]; I'd like
Given following Statment: String query = "Select * from T_spareParts where SparePartPK IN (?

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.