`Readonly<T>` not assignable to `T` with optional properties
Navigation Menu
{{ message }}
microsoft / TypeScript Public
- Notifications You must be signed in to change notification settings
- Fork 13.3k
Closed
Milestone
Description
opened
on Nov 28, 2016type T = { a? : number, b: string }; var y: T; var x: Readonly<T> = y; // Error: Property 'a' is optional
Metadata
Metadata
Assignees
Type
No type
Projects
No projects
Milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions