Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

chore: ignore typecheck for onFinishCommand #3353

Closed

Conversation

achingbrain
Copy link
Member

Adds a ts-ignore for the yargs onFinishCommand method as otherwise building fails with:

Property 'onFinishCommand' does not exist on type 'Argv<{ silent: boolean; } & { pass: string; } & { migrate: boolean; } & { api: string | undefined; }>'

Adds a ts-ignore for the yargs `onFinishCommand` method as otherwise building fails with:

```
Property 'onFinishCommand' does not exist on type 'Argv<{ silent: boolean; } & { pass: string; } & { migrate: boolean; } & { api: string | undefined; }>'
```
@achingbrain
Copy link
Member Author

@Gozala I don't really want to merge this, any idea what's causing this to happen?

To replicate, just run npm run build from the root of the repo.

@achingbrain achingbrain requested a review from Gozala October 27, 2020 09:08
@achingbrain
Copy link
Member Author

I can't replicate this now, closing.

@achingbrain achingbrain deleted the chore/ignore-type-check-for-onfinishcommand branch October 27, 2020 17:46
achingbrain pushed a commit that referenced this pull request Oct 28, 2020
This was prompted by #3353. I am guessing that something end up pulling old version of `@types/yargs` that was unaware of `onFinishCommand`. This pull explicitly adds latest `@types/yargs` into `ipfs-cli` dev dependencies which:

1. Seems to be aware of `onFinishCommand`.
2. Makes ipfs-cli aware of yargs interface, which without this just appears as `any`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant