https://supertokens.com/ logo
#support-questions
Title
# support-questions
b

benjick

11/01/2021, 4:47 PM
Having a small typescript issue. My backend config looks like:
Copy code
ts
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