A type error is triggered on building when using dynamic headers.
Type error: Type '{ 'Prismic-Ref': () => Promise<string>; Authorization: string; Accept: string; 'Content-Type': string; }' is not assignable to type 'ISimpleQLHeaders'.
Types of property ''Prismic-Ref'' are incompatible.
Type '() => Promise<string>' is not assignable to type 'string | DynamicHeaderValue'.
Type '() => Promise<string>' is not assignable to type 'DynamicHeaderValue'.
Type 'Promise<string>' is not assignable to type 'string | DynamicHeaderValue'.
Type 'Promise<string>' is not assignable to type 'DynamicHeaderValue'.
Type 'Promise<string>' provides no match for the signature '(): string | DynamicHeaderValue'
A type error is triggered on building when using dynamic headers.