Skip to content

TypeScript 4.8 complains *.d.ts #482

@riywo

Description

@riywo

Describe the bug
Once we bump our typescript version from 4.7.4 to 4.8.2, @oclif/core start failing to compile: autifyhq/autify-cli#84

    > @autifyhq/autify-cli@0.8.0-beta.0 build
    > shx rm -rf dist && tsc -b

    node_modules/@oclif/core/lib/command.d.ts(100,35): error TS2344: Type 'F' 
    does not satisfy the constraint 'FlagOutput'.
    node_modules/@oclif/core/lib/command.d.ts(100,92): error TS2344: Type 'F' 
    does not satisfy the constraint 'OutputFlags<any>'.
    node_modules/@oclif/core/lib/parser/index.d.ts(9,35): error TS2344: Type 
    'TFlags' does not satisfy the constraint 'FlagOutput'.
    node_modules/@oclif/core/lib/parser/index.d.ts(9,74): error TS2344: Type 
    'TFlags' does not satisfy the constraint 'OutputFlags<any>'.

    Code: 1

To Reproduce
Steps to reproduce the behavior:

  1. Pull the dependabot branch from Bump typescript from 4.7.4 to 4.8.2 autifyhq/autify-cli#84
  2. npm run build

Expected behavior
No failure on tsc.

Screenshots
N/A

Environment (please complete the following information):
ubuntu-latest and macos-latest of GitHub Actions hosted runners. @oclif/core is updated to the latest (1.16.0) autifyhq/autify-cli#85

Additional context
Originally this issue was reported by #480 but closed by the author. Hence, this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions