Skip to content

Commit c204fff

Browse files
committed
fix: missing module types
1 parent 7c8eb17 commit c204fff

File tree

8 files changed

+25
-2
lines changed

8 files changed

+25
-2
lines changed

packages/electron-chrome-web-store/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"typescript": "^5.6.3"
3535
},
3636
"dependencies": {
37+
"@types/chrome": "^0.0.287",
3738
"adm-zip": "^0.5.16",
3839
"debug": "^4.3.7",
3940
"pbf": "^4.0.1"

packages/electron-chrome-web-store/src/browser/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
WebGlStatus,
1111
} from '../common/constants'
1212
import { installExtension } from './installer'
13+
import { ExtensionId, WebStoreState } from './types'
1314

1415
const d = debug('electron-chrome-web-store:api')
1516

packages/electron-chrome-web-store/src/browser/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export { installExtension, downloadExtension } from './installer'
88
import { initUpdater } from './updater'
99
export { updateExtensions } from './updater'
1010
import { getDefaultExtensionsPath } from './utils'
11+
import { ExtensionId, WebStoreState } from './types'
1112

1213
interface ElectronChromeWebStoreOptions {
1314
/**

packages/electron-chrome-web-store/src/browser/installer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { readCrxFileHeader, readSignedData } from './crx3'
1313
import { convertHexadecimalToIDAlphabet, generateId } from './id'
1414
import { fetch, getChromeVersion, getDefaultExtensionsPath } from './utils'
1515
import { findExtensionInstall } from './loader'
16+
import { ExtensionId } from './types'
1617

1718
const d = debug('electron-chrome-web-store:installer')
1819

packages/electron-chrome-web-store/src/browser/loader.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import debug from 'debug'
44

55
import { generateId } from './id'
66
import { compareVersions } from './utils'
7+
import { ExtensionId } from './types'
78

89
const d = debug('electron-chrome-web-store:loader')
910

packages/electron-chrome-web-store/src/browser/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
type ExtensionId = Electron.Extension['id']
1+
export type ExtensionId = Electron.Extension['id']
22

3-
interface WebStoreState {
3+
export interface WebStoreState {
44
session: Electron.Session
55
extensionsPath: string
66
installing: Set<ExtensionId>

packages/electron-chrome-web-store/src/browser/updater.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { app, powerMonitor, session as electronSession } from 'electron'
55

66
import { compareVersions, fetch, getChromeVersion } from './utils'
77
import { downloadExtensionFromURL } from './installer'
8+
import { WebStoreState } from './types'
89

910
const d = debug('electron-chrome-web-store:updater')
1011

yarn.lock

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,14 @@
16841684
"@types/filesystem" "*"
16851685
"@types/har-format" "*"
16861686

1687+
"@types/chrome@^0.0.287":
1688+
version "0.0.287"
1689+
resolved "https://registry.yarnpkg.com/@types/chrome/-/chrome-0.0.287.tgz#239969b1195b441836d2137125543b5241c41157"
1690+
integrity sha512-wWhBNPNXZHwycHKNYnexUcpSbrihVZu++0rdp6GEk5ZgAglenLx+RwdEouh6FrHS0XQiOxSd62yaujM1OoQlZQ==
1691+
dependencies:
1692+
"@types/filesystem" "*"
1693+
"@types/har-format" "*"
1694+
16871695
"@types/connect-history-api-fallback@^1.3.5":
16881696
version "1.5.4"
16891697
resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz#7de71645a103056b48ac3ce07b3520b819c1d5b3"
@@ -3379,6 +3387,15 @@ [email protected]:
33793387
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
33803388
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
33813389

3390+
electron-chrome-web-store@^0.5.0:
3391+
version "0.5.0"
3392+
resolved "https://registry.yarnpkg.com/electron-chrome-web-store/-/electron-chrome-web-store-0.5.0.tgz#70510315c979e88147c1fa7fbbe30a6c6e59c86b"
3393+
integrity sha512-i6scuETNOdGxnTP1JBQyLWLxKkJZ0WJsnRzrxrujBEeDzt976X58y2t4p8DwuP9JH72N4S7q6OqqzdwQGZz+Mg==
3394+
dependencies:
3395+
adm-zip "^0.5.16"
3396+
debug "^4.3.7"
3397+
pbf "^4.0.1"
3398+
33823399
electron-installer-dmg@^5.0.1:
33833400
version "5.0.1"
33843401
resolved "https://registry.yarnpkg.com/electron-installer-dmg/-/electron-installer-dmg-5.0.1.tgz#309662eccce4a8585a79fe4bce79c23976a950f0"

0 commit comments

Comments
 (0)