Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug? declare module 'yargs2/index//yargs' #62

Open
bluelovers opened this issue Jul 13, 2018 · 2 comments
Open

bug? declare module 'yargs2/index//yargs' #62

bluelovers opened this issue Jul 13, 2018 · 2 comments

Comments

@bluelovers
Copy link

import { Arguments, Argv } from 'yargs';

declare module 'yargs'
{
}

output

declare module 'yargs2/core' {
    /**
      * Created by user on 2018/6/1/001.
      */
    import { Argv } from 'yargs';
    declare module 'yargs2/index//yargs' {
}
}

should is module 'yargs' not module 'yargs2/index//yargs'

@trajano
Copy link

trajano commented Sep 27, 2018

Do you know if there's any fork that fixes this?

@trajano
Copy link

trajano commented Sep 27, 2018

I have a file that has


declare module 'vue/types/vue' {
    export interface Vue {
        $wp: WPAPI;
    }
}

and it puts it in (I flagged the problem text)

declare module '@lj/vue-wp/src/plugin' {
    import WPAPI from "wpapi";
    import { PluginObject } from 'vue';
    **declare** module 'vue/types/vue' {
        interface Vue {
            $wp: WPAPI;
        }
    }
    const _default: PluginObject<WPAPI.WPAPIOptions>;
    export default _default;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants