Skip to content

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

@jsoref

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.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions