Skip to content

Commit

Permalink
fix: add resource type
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Feb 1, 2023
1 parent f250e43 commit 89771ef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@
// since it seems to break the global interface merging
// so let's just type the basics of request and response

type ResourceType =
| 'document'
| 'fetch'
| 'xhr'
| 'websocket'
| 'stylesheet'
| 'script'
| 'image'
| 'font'
| 'cspviolationreport'
| 'ping'
| 'manifest'
| 'other'

interface BaseMessage {
/**
* The body of the HTTP message.
Expand Down

0 comments on commit 89771ef

Please sign in to comment.