Tim
05/09/2022, 5:30 PMexport default class ApiStack extends sst.Stack {
api: sst.Api;
constructor(scope: <http://sst.App|sst.App>, id: string, props: ApiStackProps) {
const api = new sst.Api(this, 'Api', {
...
});
this.api = api;
}
}
but assigning to this.api
gives me a typescript error
Type 'Api<{ Authorizer: { type: "user_pool"; userPool: { id: string; clientIds: string[]; }; }; }>' is not assignable to type 'Api<Record<string, never>>'.
Tim
05/09/2022, 5:31 PMTim
05/09/2022, 5:31 PMapi: any
in the other stack’s propsAdam Fanello
05/09/2022, 5:43 PMsst.Api<any>
.Tim
05/09/2022, 5:44 PMFrank