@E18e/Get Symbol Description

1.0.5Last update Aug 9, 2024
by@e18e

Get Symbol Description Codemod

Introduction

This codemod replaces the usage of the get-symbol-description function with direct access to the description property of the relevant object. This transformation reduces unnecessary dependency on the get-symbol-description function, leading to a more streamlined codebase.

Before

import { getSymbolDescription } from 'some-module';
const symbolDesc = getSymbolDescription(someObject);

After

const symbolDesc = someObject.description;

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now