regexFind: /([a-zA-Z_$][a-zA-Z0-9_$]*)\\s+(number|string|boolean|any|object|Array|Function)/
regexReplace: $1: $2Add missing punctuation mark. Common fixes: comma between object properties, colon in type annotations, closing parenthesis in functions, or semicolon after statements.
const obj = {
- name: "John"
+ name: "John",
age: 30
}Explanation: Missing comma between object literal properties
- let count number = 5
+ let count: number = 5Explanation: Missing colon between variable name and type annotation
npx tsc ./docs/1005/index.ts --noEmit --prettydocs/1005/index.ts:3:3 - error TS1005: ',' expected.
3 age: 30
~~~
docs/1005/index.ts:6:11 - error TS1005: ',' expected.
6 let count number = 5
~~~~~~OR (without --pretty flag):
docs/1005/index.ts(3,3): error TS1005: ',' expected.
docs/1005/index.ts(6,11): error TS1005: ',' expected.