Skip to content

Commit

Permalink
bump TS
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Nov 14, 2024
1 parent eb5ae39 commit 5619f72
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"@graphql-codegen/typescript-graphql-request": "^6.1.0",
"@graphql-codegen/typescript-operations": "^4.0.1",
"pkg": "^5.8.1",
"typescript": "4.9.4"
"typescript": "^5.3.0"
}
}
2 changes: 1 addition & 1 deletion apps/menu-bar/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"eslint": "^8.48.0",
"eslint-plugin-import": "^2.25.0",
"ts-node": "^10.0.0",
"typescript": "~4.9.4",
"typescript": "^5.3.0",
"vite": "^5.0.12",
"vite-plugin-static-copy": "^2.1.0"
},
Expand Down
8 changes: 4 additions & 4 deletions apps/menu-bar/electron/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4913,10 +4913,10 @@ typed-array-length@^1.0.4:
for-each "^0.3.3"
is-typed-array "^1.1.9"

typescript@~4.9.4:
version "4.9.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
typescript@^5.3.0:
version "5.6.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==

unbox-primitive@^1.0.2:
version "1.0.2"
Expand Down
2 changes: 1 addition & 1 deletion apps/menu-bar/modules/auto-updater/electron/Updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class Updater extends EventEmitter {
this.platform.init();
this.setupWindowFunctions();

if (process.argv.some((arg) => arg === '--squirrel-firstrun')) {
if (process.argv.some((arg: string) => arg === '--squirrel-firstrun')) {
this.logger.info('auto update is disabled because this is the first launch');
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Options {

constructor() {
this.autoDownload = false;
this.build = this.makeBuildString(process);
this.build = this.makeBuildString(process as unknown as NodeJS.Process);
this.http = {};
this.version = '';
this.url = '';
Expand Down
4 changes: 2 additions & 2 deletions apps/menu-bar/modules/menu-bar/src/MenuBarModule.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { requireNativeModule, EventEmitter } from 'expo-modules-core';
import { requireNativeModule, LegacyEventEmitter } from 'expo-modules-core';
import { NativeModule } from 'react-native';

import { NativeMenuBarModule } from './types';

const MenuBarModule = requireNativeModule<NativeModule & NativeMenuBarModule>('MenuBar');
export const emitter = new EventEmitter(MenuBarModule);
export const emitter = new LegacyEventEmitter(MenuBarModule);

export default MenuBarModule;
8 changes: 4 additions & 4 deletions apps/menu-bar/src/components/DeviceItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const DeviceItem = ({ device, onPress, onPressLaunch, selected }: Props) => {
backgroundColor: selected
? PlatformColor('selectedContentBackground')
: currentTheme === 'dark'
? 'rgba(255,255,255,.23)'
: 'rgba(0,0,0,.16)',
? 'rgba(255,255,255,.23)'
: 'rgba(0,0,0,.16)',
},
]}>
<IphoneIcon
Expand All @@ -66,8 +66,8 @@ const DeviceItem = ({ device, onPress, onPressLaunch, selected }: Props) => {
selected
? palette.dark.white
: currentTheme === 'dark'
? palette.dark.gray['900']
: theme.text.default
? palette.dark.gray['900']
: theme.text.default
}
/>
</View>
Expand Down
5 changes: 2 additions & 3 deletions apps/menu-bar/src/popover/Core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ type Props = {
};

function Core(props: Props) {
const [selectedDevicesIds, setSelectedDevicesIds] = useState<SelectedDevicesIds>(
getSelectedDevicesIds()
);
const [selectedDevicesIds, setSelectedDevicesIds] =
useState<SelectedDevicesIds>(getSelectedDevicesIds());

const { apps, refetch: refetchApps } = useGetPinnedApps();
usePopoverFocusEffect(
Expand Down
2 changes: 1 addition & 1 deletion packages/common-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
},
"devDependencies": {
"eslint-config-universe": "^11.3.0",
"typescript": "4.9.4"
"typescript": "^5.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/eas-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/uuid": "^9.0.1",
"eslint-config-universe": "^11.3.0",
"expo-manifests": "^0.13.1",
"typescript": "4.9.4"
"typescript": "^5.3.0"
},
"dependencies": {
"@expo/config": "^8.1.2",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14146,11 +14146,6 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==

[email protected]:
version "4.9.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==

"typescript@>=3 < 6", typescript@^5.3.0:
version "5.6.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
Expand Down

0 comments on commit 5619f72

Please sign in to comment.