Skip to content

add support for redacted headers #6321

add support for redacted headers

add support for redacted headers #6321

Triggered via pull request October 2, 2024 15:35
Status Failure
Total duration 3m 27s
Artifacts

check.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Types: packages/platform/src/Headers.ts#L75
Type 'transform<Record$<typeof String$, Union<[typeof String$, Array$<typeof String$>]>>, Schema<Headers, Headers, never>>' is not assignable to type 'Schema<Headers, ReadonlyRecord<string, string | Redacted<string> | readonly (string | Redacted<string>)[]>, never>'.
Types: packages/platform/src/Headers.ts#L85
Argument of type '{ strict: true; decode: (record: { readonly [x: string]: string | readonly string[]; }) => Headers; encode: <A>(a: A) => A; }' is not assignable to parameter of type '{ readonly decode: (fromA: { readonly [x: string]: string | readonly string[]; }, fromI: { readonly [x: string]: string | readonly string[]; }) => Headers; readonly encode: (toI: Headers, toA: Headers) => { ...; }; readonly strict?: true | undefined; } | { ...; }'.
Types: packages/platform/src/HttpApiBuilder.ts#L691
Property 'slice' does not exist on type 'string | Redacted<string>'.
Types: packages/platform/src/HttpApiBuilder.ts#L716
Argument of type 'string | Redacted<string>' is not assignable to parameter of type 'string'.
Types: packages/platform/src/HttpIncomingMessage.ts#L112
Property 'includes' does not exist on type 'string | Redacted<string>'.
Types: packages/platform/src/HttpIncomingMessage.ts#L118
Property 'includes' does not exist on type 'string | Redacted<string>'.
Types: packages/platform/src/HttpIncomingMessage.ts#L118
Property 'includes' does not exist on type 'string | Redacted<string>'.
Types: packages/platform/src/HttpTraceContext.ts#L52
Property 'split' does not exist on type 'string | Redacted<string>'.
Types: packages/platform/src/HttpTraceContext.ts#L72
Type 'string | Redacted<string>' is not assignable to type 'string'.
Types: packages/platform/src/HttpTraceContext.ts#L73
Type 'string | Redacted<string>' is not assignable to type 'string'.