Question: What is the point of the `typescript` option?
See original GitHub issueThis says that if the option isn’t set, the plugin will automatically set it to require('typescript')
.
I’m wondering why you would ever want to manually set the typescript
option to require('typescript')
then. Wouldn’t calling require('typescript')
in rollup.config.js
always give the same answer as require('typescript')
in the plugin?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
What is the question mark for in a Typescript parameter name
Not exactly. Question mark means "optional". So it's a shorthand for "parameter: type | undefined = undefined".. – mcoolive.
Read more >Documentation - TypeScript 3.7
Ultimately the goal of TypeScript is to type existing JavaScript constructs in the least disruptive way. For that reason, TypeScript 3.7 introduces a...
Read more >How to use a question mark in TypeScript variables
The question mark ? in typescript is used in two ways: To mention that a particular variable is optional. To pre-check if a...
Read more >Top 50 TypeScript Interview Questions and Answers in 2023
A TypeScript code is written in a file with .ts extension and then compiled into JavaScript using the compiler. You can write the...
Read more >Complete Guide to TypeScript Question Mark - eduCBA
TypeScript question mark are used on variables to mark it as an optional parameter. When declaring a TypeScript variable, the declared variable becomes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You might want to use multiple versions of typescript for example, or have it in a non-standard place.
You can also use this for alternative TS implementations, such as
ttypescript
, for instance for the purpose of #201 or something else.