Ross Coundon
09/22/2021, 2:01 PMconst someFunctionList: Function[] = [];
but this gives the linting error
Don't use `Function` as a type. The `Function` type accepts any function-like value.
It provides no type safety when calling the function, which can be a common source of bugs.
So what I've done instead is to import Function via an alias
import { Function as SSTFunction } from '@serverless-stack/resources';
and used
const someFunctionList: SSTFunction[] = [];
Ross Coundon
09/22/2021, 2:02 PMthdxr
09/22/2021, 2:11 PMsst.Function
Ross Coundon
09/22/2021, 2:13 PMthdxr
09/22/2021, 2:17 PM