Skip to content

I don't know what title to enter, please change #62287

Description

🔎 Search Terms

readonly

🕗 Version & Regression Information

  • This changed between versions ______ and _______
  • This changed in commit or PR _______
  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
  • I was unable to test this on prior versions because _______

⏯ Playground Link

https://www.typescriptlang.org/play/?ts=6.0.0-dev.20250814#code/KYDwDg9gTgLgBASwHY2FAZgQwMbDgSSQRgUwBsEAvNOAbwFgAoASGWIApjgBbAZwC44AJWCYAJhCRkAngEEoUTNIA8SAK7cARmgB8ASkGaIEMqKQBuJgF8mTUJFhxsZTL15wAoiEzcwpxL6m3MAo7oTEpBTUUHRMzGBqmhTYiEQwnKh8gupaaADaALp6sSysmbx5AAwFcAC8cACMloxxzFDAMGpQSHAwUGrAzcw2jCNAA

💻 Code

// Your code here

🙁 Actual behavior

Is this a bug? we have readonly in the interface method

🙂 Expected behavior

you cannot type the method without readonly

Additional information about the issue

No response

Activity

  1. MartinJohns commented on Aug 14, 2025

    @MartinJohns
    Contributor

    You forgot to fill out the issue template.

    Duplicate of #62226 and many others.

  2. lukaszprus commented on Aug 14, 2025

    @lukaszprus
    Author

    Sorry! I just needed to check this quickly

    Is it expected behavoiur or a bug then?

    Feel free to close this issue

  3. LukeAbby commented on Aug 14, 2025

    @LukeAbby

    This is an intended behavior. You may be interested in as of yet unreleased enforceReadonly feature.

  4. typescript-bot commented on Aug 18, 2025

    @typescript-bot
    Contributor

    This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes.

  5. locked as resolved and limited conversation to collaborators on Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions