Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

181
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda