rocktimsaikia/read-git-user

Cannot find module 'xo' or its corresponding type declarations.

ozum opened this issue · 2 comments

ozum commented

Hi,

When used with typescript (v3 and v4), I got following error:

node_modules/read-git-user/index.d.ts:1:23 - error TS2307: Cannot find module 'xo' or its corresponding type declarations.

1 import {Options} from 'xo';
                        ~~~~

Also it seems, xo is not used here. Removing this line corrects the error.

Thanks,

Yes, you are right.

import {Options} from 'xo';

I don't remember adding this line to the module. This might have been added by my IDE auto-complete feature without me noticing it. PRs are welcome on this 👍

ozum commented

Sent PR.