Files
brave-core/components/definitions
Simon Hong f064098d43 Cleanup deprecated brave theme apis (#32089)
Issue: brave/brave-browser#40863

This is the effort to reduce the size of #31939
and only removes already deprecated codes that refers brave dark theme api.
2025-10-30 09:24:51 +09:00
..

Typescript Definition Files

This directory is where we locate Typescript type definitions of Javascript APIs and objects. Only .d.ts files should be present - that is, files that do not result in any extra Javascript.

What needs a global definiton

  • Globally-available APIs that are not common outside of Brave - generally at chrome.* or window.*.
  • JS / NPM modules that do not already have Typescript types built-in.

What does not need a global definition

Types that are local to your specific page or app. Instead, define the type within your component, export it and import it where you need to reference it.