Skip to content

Errors when running "npm install" #1540

Closed
@rajatbhatta

Description

@rajatbhatta

Environment details

  • OS: Linux
  • Node.js version: v17.3.1
  • npm version: 8.3.0

Steps to reproduce

  1. git clone https://github.com/googleapis/nodejs-spanner.git
  2. cd nodejs-spanner
  3. npm install

Issues

src/database.ts:2491:12 - error TS2352: Conversion of type 'Transform' to type 'PartialResultStream' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.

2491     return proxyStream as PartialResultStream;
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/partial-result-stream.ts:160:3 - error TS2416: Property 'destroy' in type 'PartialResultStream' is not assignable to the same property in base type 'Transform'.
  Type '(err?: Error | undefined) => void' is not assignable to type '(error?: Error | undefined) => this'.
    Type 'void' is not assignable to type 'this'.
      'this' could be instantiated with an arbitrary type which could be unrelated to 'void'.

160   destroy(err?: Error): void {
      ~~~~~~~

src/table.ts:270:12 - error TS2352: Conversion of type 'Transform' to type 'PartialResultStream' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
  Type 'Transform' is missing the following properties from type 'PartialResultStream': _destroyed, _fields, _options, _values, and 6 more.

270     return proxyStream as PartialResultStream;
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 3 errors.

Thanks!

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/nodejs-spanner API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions