Skip to content
New issue

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

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

Already on GitHub? # to your account

No TypeScript definition files #72

Closed
gbrlsnchs opened this issue Apr 11, 2017 · 1 comment
Closed

No TypeScript definition files #72

gbrlsnchs opened this issue Apr 11, 2017 · 1 comment

Comments

@gbrlsnchs
Copy link

Any expectation of creating definitions for this marvelous plugin?

@ThunderDev1
Copy link

This should work

// index.d.ts

import {Plugin} from 'webpack';

export = FaviconsWebpackPlugin;

declare class FaviconsWebpackPlugin extends Plugin {
  constructor(options: string | FaviconsWebpackPlugin.FaviconOptions);
}

declare namespace FaviconsWebpackPlugin {
  interface FaviconOptions {
    logo: string;
    prefix?: string;
    emitStats?: boolean;
    statsFilename?: string;
    persistentCache?: boolean;
    inject?: boolean;
    background?: string;
    icon?: IconOptions;
  }

  interface IconOptions {
    android?: boolean;
    appleIcon?: boolean;
    appleStartup?: boolean;
    coast?: boolean;
    favicons?: boolean;
    firefox?: boolean;
    opengraph?: boolean;
    twitter?: boolean;
    yandex?: boolean;
    windows?: boolean;
  }
}

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

No branches or pull requests

2 participants