Skip to content

Types of parameters 'options' and 'encoding' are incompatible. -- Type 'string' is not assignable to type 'WriteFileOptions | undefined'. #27230

Closed

Description

@jsoref

https://github.com/check-spelling-sandbox/gh-aw/actions/runs/24586969695/job/71898928152#step:7:13

> typecheck
> tsc --noEmit

Error: copilot_driver.cjs(169,26): error TS2345: Argument of type '((path: PathOrFileDescriptor, data: string | Uint8Array<ArrayBufferLike>, options?: WriteFileOptions | undefined) => void) | ((path: string, data: string, encoding: string) => void)' is not assignable to parameter of type '(path: string, data: string, encoding: string) => void'.
  Type '(path: PathOrFileDescriptor, data: string | Uint8Array<ArrayBufferLike>, options?: WriteFileOptions | undefined) => void' is not assignable to type '(path: string, data: string, encoding: string) => void'.
    Types of parameters 'options' and 'encoding' are incompatible.
      Type 'string' is not assignable to type 'WriteFileOptions | undefined'.

This could be fixed by 4316276 -- but this repository doesn't accept PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions