About 4,040,000 results
Open links in new tab
  1. How to import library with TypeScript Playground

    TypeScript Playground isn't a fully fledged sandbox solution. It's merely meant as a simple type explorer that doesn't need dependencies. For your use case I would recommend using …

  2. How to modify compilerOptions.lib in TypeScript Playground?

    Nov 4, 2021 · It appears that the playground chooses what library declarations to include based on the target. If you change Target: to es2019 or later it works. Description from the TS config …

  3. Get logs "Cannot use import statement outside a module - Stack …

    Mar 9, 2022 · Get logs "Cannot use import statement outside a module " when run code in TypeScript Playground Asked 3 years, 10 months ago Modified 3 years, 9 months ago Viewed …

  4. How do I post links to TypeScript playground in the comments?

    Feb 12, 2025 · The type script playground is really helpful for sharing typing examples. The problem is, if I get an answer and need additional clarification, I cannot post the link to the …

  5. How to consume npm modules from typescript? - Stack Overflow

    Jul 6, 2016 · Your TypeScript code should now compile, albeit with NO type information (TypeScript consider the foo module of type "any"). You can also attempt to write the type …

  6. TypeScript playground and TSX give different method decorator …

    Oct 8, 2024 · TypeScript playground and TSX give different method decorator outputs Asked 8 months ago Modified 8 months ago Viewed 140 times

  7. Typescript: Cannot use import statement outside a module

    Oct 7, 2019 · As of TypeScript 4.5 it is possible to use the .mts and .cts extensions as well and have the compiler emit .mjs or .cjs files, respectively. The two systems are partially …

  8. Typescript Playground Error on using generic type with Arrow …

    Nov 12, 2021 · As I am new to generic types , I assume its not a bug with ts playground rather my lack of understanding. Also how can I rewrite the normal function as arrow function?

  9. promise - How to use fetch in TypeScript - Stack Overflow

    Dec 12, 2016 · I am using window.fetch in Typescript, but I cannot cast the response directly to my custom type: I am hacking my way around this by casting the Promise result to an …

  10. Monaco Editor & Typescript: How to add global types?

    Oct 23, 2023 · Monaco Editor & Typescript: How to add global types? Asked 2 years, 2 months ago Modified 1 year, 5 months ago Viewed 2k times