ion icon indicating copy to clipboard operation
ion copied to clipboard

transform signature should return void not undefined

Open ryanleecode opened this issue 1 year ago • 0 comments

This always requires return undefined if you have proper tsconfig settings on. it should just be void.

export type Transform<T> =
  | Partial<T>
  | ((args: T, opts: $util.CustomResourceOptions, name: string) => undefined);

tsconfig.json

{
  "compilerOptions": {
    "strict": true,
    "module": "ESNext",
    "moduleResolution": "Bundler"
  },
  "include": ["infra", "sst.config.ts"]
}

ryanleecode avatar Oct 05 '24 03:10 ryanleecode