Skip to content

chore(types): Cleanup types in wxt/browser/chrome - #932

Merged
aklinker1 merged 2 commits into
mainfrom
chrome-browser-types
Aug 23, 2024
Merged

aklinker1 merged 2 commits into
mainfrom
chrome-browser-types

Conversation

@aklinker1

Copy link
Copy Markdown
Member

After this PR, the recommended approach to importing types is this:

extensionApi: "webextension-polyfill"
import { Runtime } from 'wxt/browser';

function onMesasge(message: any, sender: Runtime.Sender) {
  // ...
} 
extensionApi: "chrome"
function onMesasge(message: any, sender: browser.runtime.Sender) {
  // ...
} 

@netlify

netlify Bot commented Aug 20, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 2de254a
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/66c892be239478000873975e
😎 Deploy Preview https://deploy-preview-932--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aklinker1 aklinker1 mentioned this pull request Aug 20, 2024
29 of 33 tasks
@codecov

codecov Bot commented Aug 20, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.02%. Comparing base (13163c9) to head (2de254a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #932      +/-   ##
==========================================
- Coverage   82.11%   82.02%   -0.10%     
==========================================
  Files         125      125              
  Lines        6593     6593              
  Branches     1096     1098       +2     
==========================================
- Hits         5414     5408       -6     
- Misses       1165     1171       +6     
  Partials       14       14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aklinker1
aklinker1 marked this pull request as ready for review August 23, 2024 13:47
@aklinker1
aklinker1 merged commit 68183b6 into main Aug 23, 2024
@aklinker1
aklinker1 deleted the chrome-browser-types branch August 23, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant