regexFind: /\[([a-zA-Z_$][a-zA-Z0-9_$]*\s*:\s*[^\]]+)\]/
regexReplace: [$1]: anyAdd a type annotation to the index signature. Index signatures must specify the type of their values.
interface MyInterface {
- [key: string]
+ [key: string]: any
}Explanation: Add type annotation to index signature
+ interface DataInterface {
- [prop: string]
+ [prop: string]: any
+ }Explanation: Index signatures must have a type annotation for their values
npx tsc ./docs/1021/index.ts --noEmit --prettydocs/1021/index.ts:2:3 - error TS1021: An index signature must have a type annotation.
2 [key: string]
~~~~~~~~~~~~~OR (without --pretty flag):
docs/1021/index.ts(2,3): error TS1021: An index signature must have a type annotation.