nodejs-spanner icon indicating copy to clipboard operation
nodejs-spanner copied to clipboard

export `Float` in index.ts

Open john-twigg-ck opened this issue 2 years ago • 0 comments

https://github.com/googleapis/nodejs-spanner/blob/main/src/codec.ts#L125

I can convert TO Float using Spanner.float but I cannot easily make an interface to capture ORM being returned from the DB.

Example

// ??????
import { Float } from "@google-cloud/spanner/build/src/codec"
// ??????

export interface Trace {
    traceId: string
    flowName: string

    startTime: ISODateString

    endTime: ISODateString

    // Duration in uSeconds
    duration: Float

john-twigg-ck avatar Oct 04 '22 21:10 john-twigg-ck