Skip to content

Commit

Permalink
Merge pull request #6 from FormidableLabs/feat/disconnectMessage
Browse files Browse the repository at this point in the history
(feat) - type for dc message
  • Loading branch information
andyrichardson committed Aug 26, 2019
2 parents f6d4b60 + b2e2f71 commit 110f813
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@types/node": "^12.7.1",
"@types/react": "^16.9.2",
"@typescript-eslint/eslint-plugin": "^2.0.0",
"@typescript-eslint/parser": "^2.0.0",
"eslint": "^6.1.0",
Expand Down
5 changes: 5 additions & 0 deletions src/types/outgoing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ export interface InitMessage {
type: "init";
}

export interface DisconnectMessage {
type: "disconnect";
}

/** Messages being sent by the devtools exchange to the content script. */
export type DevtoolsExchangeOutgoingMessage =
| OperationMessage
| OperationResponseMessage
| OperationErrorMessage
| DisconnectMessage
| InitMessage;

/** Event type associated with events triggered by the exchange. */
Expand Down
18 changes: 18 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,24 @@ fast-glob@^3.0.3:
merge2 "^1.2.3"
micromatch "^4.0.2"

"@types/prop-types@*":
version "15.7.1"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.1.tgz#f1a11e7babb0c3cad68100be381d1e064c68f1f6"
integrity sha512-CFzn9idOEpHrgdw8JsoTkaDDyRWk1jrzIV8djzcgpq0y9tG4B4lFT+Nxh52DVpDXV+n4+NPNv7M1Dj5uMp6XFg==

"@types/react@^16.9.2":
version "16.9.2"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.2.tgz#6d1765431a1ad1877979013906731aae373de268"
integrity sha512-jYP2LWwlh+FTqGd9v7ynUKZzjj98T8x7Yclz479QdRhHfuW9yQ+0jjnD31eXSXutmBpppj5PYNLYLRfnZJvcfg==
dependencies:
"@types/prop-types" "*"
csstype "^2.2.0"

csstype@^2.2.0:
version "2.6.6"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.6.tgz#c34f8226a94bbb10c32cc0d714afdf942291fc41"
integrity sha512-RpFbQGUE74iyPgvr46U9t1xoQBM8T4BL8SxrN66Le2xYAPSaDJJKeztV3awugusb3g3G9iL8StmkBBXhcbbXhg==

fast-json-stable-stringify@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
Expand Down

0 comments on commit 110f813

Please sign in to comment.