mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
is-svg: Export namespace
This commit is contained in:
7
types/is-svg/index.d.ts
vendored
7
types/is-svg/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import isSvg = require('is-svg');
|
||||
import * as isSvg from 'is-svg';
|
||||
|
||||
const data = '<svg></svg>';
|
||||
let result = false;
|
||||
|
||||
Reference in New Issue
Block a user