-
Look inside the
src/some-other-interfaces/TestThings.ts
file and see that certain things are namedid
. -
Refactor (rename) using SHIFT + F6 the property name for
id
to (for example)_key
in the interfaceIRenameMyIdProperty
insidesrc/some-interfaces/TestData.ts
-
Go back to
TestThings.ts
and see that :
chrome.tabs.sendMessage(tabs[0].id, message, (response) => {
resolve(response);
});
Has become:
chrome.tabs.sendMessage(tabs[0]._key, message, (response) => {
resolve(response);
});
and
const somethingElse = shouldNotChangeObject[0].id;
Has become:
const somethingElse = shouldNotChangeObject[0]._key;
These are completely unrelated properties to the original interface.