Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
How to change interface strucure and rename all references in VS Code

I have an interface

interface IApplicationState {
    config: IConfig;
    lang: ILang;
    //many others
}

Currently is used in many places like in classes with connect from react-redux, or in reducers method like:

const setLangReducer = (state: IApplicationState , { lang }: { lang: LangType }): IApplicationState  => ({
    ...state,
    lang: {
        currentLang: lang
    }
});

I want to add some fileds inside at the root level, and all existing move down as children for new property e.g.:

interface IApplicationState {
    generalConfigs: {
        config: IConfig;
        lang: ILang;
    };
    externalConfig: {
        domain: string;         
    }
}

If I make change manually, I will must to fix all references for config and lang from root to generalConfigs.config and generalConfigs.lang

maybe is there some automatically options to change all references by changing interface structure?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

if you want to change all of the names you need to press ctrl and then 3 times R

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!