TypeScript-Handbook icon indicating copy to clipboard operation
TypeScript-Handbook copied to clipboard

Add descriptions of built-in Readonly types like ReadonlyMap, ReadonlySet, etc.

Open lindner opened this issue 6 years ago • 1 comments

In #798 descriptions of various utility types were added. What's missing are some of the very basic, very useful types ReadonlyMap, ReadonlySet etc. Would be good to add those so people don't recreate them on their own.

lindner avatar Apr 25 '19 23:04 lindner

Add ReadonlyArray to this list too!

For now the closest thing to documentation for ReadonlyArray is this: https://www.typescriptlang.org/docs/handbook/interfaces.html#readonly-properties

I've opened an issue for the rest of the common utility types: https://github.com/microsoft/TypeScript-Handbook/issues/1060

karlhorky avatar Jul 04 '19 13:07 karlhorky