Skip to content

Commit b7f9fd6

Browse files
author
Alex Bakoushin
authored
fix: explicit type import (#248)
### Description Current way of importing type is causing the type check error in a [client project](https://github.com/valora-inc/points-functions/actions/runs/16988538476/job/48162546618). This fixes the issue by the explicit type import. ### Test plan * CI * Manually tweaked `node_modules` inside the client project
1 parent cba0977 commit b7f9fd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/logging.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
import { ServerResponse } from 'http'
1414
import { ServerRequest } from '@google-cloud/logging/build/src/utils/http-request'
1515
import fastRedact from 'fast-redact'
16+
import type { RedactOptions } from 'fast-redact'
1617

1718
// GAE_SERVICE is the service name of the App Engine service:
1819
// https://cloud.google.com/appengine/docs/standard/nodejs/runtime#environment_variables
@@ -24,7 +25,7 @@ function getGoogleServiceName() {
2425
return process.env.GAE_SERVICE || process.env.K_SERVICE
2526
}
2627

27-
interface ExtendedRedactOptions extends fastRedact.RedactOptions {
28+
interface ExtendedRedactOptions extends RedactOptions {
2829
// Allows to globally replace sensitive patterns
2930
// WARNING: the value is JSON.stringified before being passed to this function
3031
// and will be JSON.parse'd after

0 commit comments

Comments
 (0)