adamreisnz / replace-in-file

A simple utility to quickly replace contents in one or more files
580 stars 65 forks source link

update `ReplaceInFileConfig` interface to include `processor` #160

Closed ctf0 closed 1 year ago

ctf0 commented 1 year ago

thanks you so much for your hard work, i found a small issue about types related to ReplaceInFileConfig, not sure if its related to my setup or if its missing, so here u go

Argument of type '{ files: string; ignore: any; processor: (input: any) => any; }' is not assignable to parameter of type 'ReplaceInFileConfig'.
  Object literal may only specify known properties, and 'processor' does not exist in type 'ReplaceInFileConfig'.ts(2345)

https://github.com/adamreisnz/replace-in-file/blob/442a69c1bd52369c6b902cf66e82829272d1c2eb/types/index.d.ts#L20-L31

Ref https://github.com/adamreisnz/replace-in-file/issues/147#issuecomment-961353540