Skip to content

Upgrade typescript & other packages#157

Merged
TwitchBronBron merged 101 commits intov4from
upgrade-typescript
Apr 1, 2024
Merged

Upgrade typescript & other packages#157
TwitchBronBron merged 101 commits intov4from
upgrade-typescript

Conversation

@MilapNaik
Copy link
Collaborator

Fixes #147

MilapNaik and others added 30 commits January 2, 2024 13:39
… old behavior, add 2 more tests that look for new behavior
Co-authored-by: Bronley Plumb <[email protected]>
# Conflicts:
#	src/RokuDeploy.ts
# Conflicts:
#	src/RokuDeploy.ts
#	src/cli.ts
#	src/commands/DeleteInstalledChannelCommand.ts
#	src/commands/GetDeviceInfoCommand.ts
#	src/commands/PrepublishCommand.ts
#	src/commands/PublishCommand.ts
#	src/commands/SignExistingPackageCommand.ts
#	src/commands/TakeScreenshotCommand.ts
#	src/commands/ZipPackageCommand.ts
#	src/index.ts
#	src/util.spec.ts
#	src/util.ts
# Conflicts:
#	src/index.ts
…comments, delete unnecessary command/tests/options, partially fix exec command
Base automatically changed from throw-exceptions-on-missing-params to v4 March 26, 2024 19:11
import * as r from 'postman-request';
import type * as requestType from 'request';
import type { CaptureScreenshotOptions, ConvertToSquashfsOptions, CreateSignedPackageOptions, DeleteDevChannelOptions, GetDevIdOptions, GetDeviceInfoOptions, RekeyDeviceOptions, SendKeyEventOptions, SideloadOptions } from './RokuDeploy';
import { RokuDeploy, type CaptureScreenshotOptions, type ConvertToSquashfsOptions, type CreateSignedPackageOptions, type DeleteDevChannelOptions, type GetDevIdOptions, type GetDeviceInfoOptions, type RekeyDeviceOptions, type SendKeyEventOptions, type SideloadOptions } from './RokuDeploy';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's revert this one. I prefer having 1 "import {notTypeStuff}" and then another line for "import type {typeStuff}". Freel free to tweak any eslint rules that complain about that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing is this no duplicate import rule doesn't have an option to exclude this scenario and to disable it means it won't create an error if we import from the same file multiple times, which I think that is a good error to have right?

https://eslint.org/docs/latest/rules/no-duplicate-imports

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just disabled it for the one line

Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Just one issue with the eslint-disable comment, then this is good to go

@TwitchBronBron TwitchBronBron merged commit 9ba9034 into v4 Apr 1, 2024
@TwitchBronBron TwitchBronBron deleted the upgrade-typescript branch April 1, 2024 18:16
@TwitchBronBron TwitchBronBron added this to the v4.0.0 milestone Apr 1, 2024
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.

2 participants