Skip to content

add a design time decorator that prevents properties from being renamed #11863

Closed

Description

we have so-called domain objects that come from the server, we, at the client side, can't really rename them without breaking the contract with the server, so doing renaming always imposes some risk, this risk could have been avoided if there was a way to lock an interface from unintended renamings

Activity

  1. mhegazy commented on Oct 26, 2016

    @mhegazy
    Contributor

    are these defined in a .d.ts or in a .ts file? if .d.ts then this falls under the same umbrella as #7458 and #8227. the fix for these is not to rename symbols coming from a declaration file unless you are editing this file directly.

  2. zpdDG4gta8XKpMCd commented on Oct 27, 2016

    @zpdDG4gta8XKpMCd
    Author

    no, it's in a plain *.ts

  3. mhegazy commented on Oct 27, 2016

    @mhegazy
    Contributor

    so it does have an implementation packing it? or is it just some interfaces?

  4. zpdDG4gta8XKpMCd commented on Oct 27, 2016

    @zpdDG4gta8XKpMCd
    Author

    it has an interface declaration + auxiliary functions like create, areEqual and copy

  5. RyanCavanaugh commented on Jul 21, 2020

    @RyanCavanaugh
    Member

    Closing due to low feedback volume

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

    In DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions