question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to output immutable types

See original GitHub issue

Option to make output typings comply tslint-immutable rules:

  • add to each interface property readonly keyword
  • use ReadonlyArray<T> instead of Array<T> or T[].

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dotansimhacommented, Oct 31, 2017

@BjornMelgaard I’m implementing this right now 😃

1reaction
dotansimhacommented, May 7, 2018

Done in 0.9.0 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Basics: Mutable vs Immutable Objects
Objects whose value can change are said to be mutable; objects whose value is unchangeable once they are created are called immutable.
Read more >
Reading 9: Mutability & Immutability - MIT
Since String is immutable, once created, a String object always has the same value. To add something to the end of a String,...
Read more >
How to use immutable types and non-public accessors with ...
This article shows how to use immutable types, public parameterized constructors, and non-public accessors with the System.Text.Json namespace.
Read more >
python - Immutable vs Mutable types - Stack Overflow
In Python if you change the value of the immutable object it will create a new object. Mutable Objects. Here are the objects...
Read more >
How to create Immutable class in Java? - GeeksforGeeks
The class must be declared as final so that child classes can't be created. · Data members in the class must be declared...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found