191e4ce330
Before upgrading we want to address the breaking change of catch variable now defaulting to `unkown` by explicitly specify `: any` for implicit `any` catch variables in our code base. This commit applies the result of running the following codemod (credit: Maor) ```ts import { API, FileInfo } from "jscodeshift"; export default function transformer(file: FileInfo, api: API) { const j = api.jscodeshift; const code = j(file.source); code .find(j.CatchClause) .filter(({ node }) => { return node.param && node.param.type == "Identifier" && !node.param.typeAnnotation; }) .forEach(({ node }) => { if (node.param.type == "Identifier") { node.param.typeAnnotation = j.tsTypeAnnotation(j.tsAnyKeyword()); } }); return code.toSource(); } ``` |
||
---|---|---|
.. | ||
models | ||
operations | ||
operationsInterfaces | ||
accessControlClient.ts | ||
accessControlClientContext.ts | ||
index.ts | ||
tracing.ts |