mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-06 17:29:08 +00:00
Merge pull request #23534 from ajafff/void-elements
Add types for 'void-elements'
This commit is contained in:
8
types/void-elements/index.d.ts
vendored
Normal file
8
types/void-elements/index.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
// Type definitions for void-elements 3.1
|
||||
// Project: https://github.com/jadejs/void-elements
|
||||
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
declare const voidElements: Partial<Record<string, true>>;
|
||||
export = voidElements;
|
||||
24
types/void-elements/tsconfig.json
Normal file
24
types/void-elements/tsconfig.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"esModuleInterop": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"void-elements-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/void-elements/tslint.json
Normal file
1
types/void-elements/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
4
types/void-elements/void-elements-tests.ts
Normal file
4
types/void-elements/void-elements-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import * as voidElements from 'void-elements';
|
||||
|
||||
let isVoid: boolean | undefined = voidElements.span;
|
||||
isVoid = voidElements.input;
|
||||
Reference in New Issue
Block a user