supertokens / supertokens-node

Node SDK for SuperTokens core
https://supertokens.com
Other
284 stars 73 forks source link

Export api method input types #299

Open nadilas opened 2 years ago

nadilas commented 2 years ago

Could we potentially get exported types for the api methods? e.g. https://github.com/supertokens/supertokens-node/blob/0e3d0e30437d69edcb881c9dfb589bbea2519a48/lib/ts/recipe/thirdpartyemailpassword/types.ts#L245

Something along the lines of:

export interface ThirdPartySignInUpPOSTInput {
              provider: TypeProvider;
              code: string;
              redirectURI: string;
              authCodeResponse?: any;
              clientId?: string;
              options: ThirdPartyAPIOptions;
              userContext: any;
}

Source: https://discord.com/channels/603466164219281420/644849840475602944/972839242839515186

rishabhpoddar commented 2 years ago

hey @nadilas this makes sense. However, it's something that would not be a big priority for us at the moment. Please feel free to make a PR for this if you like.

nadilas commented 2 years ago

@rishabhpoddar I'll look into whether we could make use of Parameters and ReturnType instead of extracting