mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[is-svg] introduce typings (#18265)
This commit is contained in:
parent
0fefe6de39
commit
5b68a7c6bb
8
types/is-svg/index.d.ts
vendored
Normal file
8
types/is-svg/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for is-svg 2.1
|
||||
// Project: https://github.com/sindresorhus/is-svg#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = isSvg;
|
||||
|
||||
declare function isSvg(input: string): boolean;
|
||||
3
types/is-svg/is-svg-tests.ts
Normal file
3
types/is-svg/is-svg-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import isSvg = require('is-svg');
|
||||
|
||||
const result: boolean = isSvg('<svg xmlns="http://www.w3.org/2000/svg"><path fill="#00CD9F"/></svg>');
|
||||
22
types/is-svg/tsconfig.json
Normal file
22
types/is-svg/tsconfig.json
Normal file
@ -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"
|
||||
]
|
||||
}
|
||||
1
types/is-svg/tslint.json
Normal file
1
types/is-svg/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user