Skip to content

TypeScript: https.Request only contains .rawBody, no other properties #610

Closed
@JaapWeijland

Description

@JaapWeijland

Related issues

Nope

[REQUIRED] Version info

node: 12.14.0

firebase-functions: 3.3.0

firebase-tools: 7.7.0

firebase-admin: 7.11.0

[REQUIRED] Test case

functions.https.onRequest(async (request, response) => {
        console.log(request.query) // Property query does not exist on type Request

        return response.send("ok")
})

[REQUIRED] Steps to reproduce

...

[REQUIRED] Expected behavior

I expect the type query to actually exist.

[REQUIRED] Actual behavior

functions.https.onRequest(async (request, response) => {
        console.log(request.query) // Property query does not exist on type Request

        return response.send("ok")
})

This has changed since I updated firebase-functions from 3.0.1 to 3.3.0. Downgrading doesn't seem to work. It is a typing issue with typescript.

Were you able to successfully deploy your functions?

Since I run TypeScript before deploying, no

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions