benjick
11/01/2021, 4:47 PMts
export let backendConfig = () => {
return {
framework: 'express',
But then when I use it with SuperTokensNode.init(SuperTokensConfig.backendConfig())
it says
> Type 'string' is not assignable to type 'TypeFramework'.
Diving into TypeFramework
shows me it should be fine:
export declare type TypeFramework = "express" | "fastify" | "hapi" | "loopback" | "koa" | "awsLambda";
Then I thought I need to define the return type of backendConfig
so I imported it like this: import { TypeFramework } from 'supertokens-node/lib/build/framework/types';
but then I get
> ... is not assignable to type '"awsLambda"'
I will just ts-ignore it for now, but thought I would mention it. Let me know if I should report an issue somewhere