https://github.com/lostpebble/webstorm-rename-issue
https://github.com/lostpebble/webstorm-rename-issue
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lostpebble/webstorm-rename-issue
- Owner: lostpebble
- Created: 2019-03-21T14:28:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T14:36:53.000Z (over 6 years ago)
- Last Synced: 2025-01-16T11:27:00.950Z (6 months ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
* Look inside the `src/some-other-interfaces/TestThings.ts` file and see that certain things are named `id`.
* Refactor (rename) using SHIFT + F6 the property name for `id` to (for example) `_key` in the interface `IRenameMyIdProperty` inside `src/some-interfaces/TestData.ts`
* Go back to `TestThings.ts` and see that :
```typescript jsx
chrome.tabs.sendMessage(tabs[0].id, message, (response) => {
resolve(response);
});
```Has become:
```typescript jsx
chrome.tabs.sendMessage(tabs[0]._key, message, (response) => {
resolve(response);
});
```and
```typescript jsx
const somethingElse = shouldNotChangeObject[0].id;
```Has become:
```typescript jsx
const somethingElse = shouldNotChangeObject[0]._key;
```These are completely unrelated properties to the original interface.