About 50 results
Open links in new tab
  1. TypeScript various file extensions explained? - Stack Overflow

    May 6, 2016 · TypeScript, *.ts A typed superset of JavaScript that "compiles" to plain JavaScript. These files have the potential to utilize type-safety and strongly-typed syntax, with IDE intellisense. …

  2. Create File object type in TypeScript - Stack Overflow

    Aug 7, 2018 · TypeScript has a defined interface for File which represents the file object in JavaScript. Generally you should look for types named as their Javascript countertypes. You can use this type in …

  3. Read and write a text file in typescript - Stack Overflow

    Nov 11, 2015 · How should I read and write a text file from typescript in node.js? I am not sure would read/write a file be sandboxed in node.js, if not, i believe there should be a way in accessing file system.

  4. How to run TypeScript files from command line? - Stack Overflow

    Nov 5, 2015 · Since the release of deno, you can now execute deno run path/to/file.ts and it will run typescript files in a single command without compiling it to a separate JS file.

  5. reactjs - What is the difference between .ts and .tsx extensions. Both ...

    Jul 3, 2019 · What is the difference between .ts and .tsx extensions. Both are used as extensions for typescript files in react. So where should we use them?

  6. How to instantiate a File object in Typescript? - Stack Overflow

    Mar 4, 2019 · The File class is not defined as part of the TypeScript language proper, but rather is a part of the DOM specification. TypeScript provides a standard declaration file for DOM objects as part of …

  7. Importing JSON file in TypeScript - Stack Overflow

    Apr 24, 2018 · Note: Since TypeScript 2.9, you can use the --resolveJsonModule compiler flag to have TypeScript analyze imported .json files and provide correct information regarding their shape …

  8. Ignore all errors in a typescript file - Stack Overflow

    Dec 19, 2024 · 132 I have a large typescript file that I've inherited. The compiler has many complaints with this file, however it works just fine. I'll come back to it, but is there any way to suppress all …

  9. typescript - How to use `@ts-ignore` for a block? - Stack Overflow

    Jul 3, 2018 · The // @ts-ignore comment enables the TypeScript compiler to ignore the line below it. How can one ignore a whole block of code with TypeScript?

  10. How do you import a text file into typescript? - Stack Overflow

    May 16, 2019 · 1 [TypeScript] [Webpack] [CreateReactApp] Import file as text It doesn't have to be txt. It can be any file extension not already handled by webpack. If you aren't using create react app, you …