diff --git a/types/is-svg/index.d.ts b/types/is-svg/index.d.ts new file mode 100644 index 0000000000..21e85cd2e2 --- /dev/null +++ b/types/is-svg/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for is-svg 2.1 +// Project: https://github.com/sindresorhus/is-svg#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = isSvg; + +declare function isSvg(input: string): boolean; diff --git a/types/is-svg/is-svg-tests.ts b/types/is-svg/is-svg-tests.ts new file mode 100644 index 0000000000..d556a944f9 --- /dev/null +++ b/types/is-svg/is-svg-tests.ts @@ -0,0 +1,3 @@ +import isSvg = require('is-svg'); + +const result: boolean = isSvg(''); diff --git a/types/is-svg/tsconfig.json b/types/is-svg/tsconfig.json new file mode 100644 index 0000000000..9776ba1c77 --- /dev/null +++ b/types/is-svg/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "is-svg-tests.ts" + ] +} diff --git a/types/is-svg/tslint.json b/types/is-svg/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/is-svg/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }