is-svg: Export namespace

This commit is contained in:
Olegs Jeremejevs
2018-05-23 19:07:28 +03:00
parent 4a7b434868
commit 5f80843518
2 changed files with 6 additions and 3 deletions

View File

@@ -5,6 +5,9 @@
/// <reference types="node" />
export = isSvg;
declare function isSvg(input?: string | Buffer | false | null): boolean;
// So that `import * as X` is possible
declare namespace isSvg {}
export = isSvg;

View File

@@ -1,4 +1,4 @@
import isSvg = require('is-svg');
import * as isSvg from 'is-svg';
const data = '<svg></svg>';
let result = false;