Merge pull request #34326 from bryceosterhaus/svg4everybody

Update package `svg4everybody` to v2.1.9
This commit is contained in:
Eloy Durán
2019-03-29 23:49:09 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
// Type definitions for svg4everybody 2.1
// Project: https://github.com/jonathantneal/svg4everybody#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions by: BendingBender <https://github.com/BendingBender>, bryceosterhaus <https://github.com/bryceosterhaus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace svg4everybody;
@@ -11,6 +11,7 @@ declare function svg4everybody(options?: svg4everybody.Svg4everybodyOpts): void;
declare namespace svg4everybody {
interface Svg4everybodyOpts {
attributeName?: string;
fallback?(src: string, svg: SVGElement, use: SVGUseElement): string;
validate?(src: string, svg: SVGElement, use: SVGUseElement): boolean;
nosvg?: boolean;
@@ -13,6 +13,7 @@ svg4everybody({
});
svg4everybody({
attributeName: 'data-href',
nosvg: true,
polyfill: true
});