mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 21:12:38 +08:00
add types/slackdown
This commit is contained in:
6
types/slackdown/index.d.ts
vendored
Normal file
6
types/slackdown/index.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
// Type definitions for slackdown 0.1
|
||||
// Project: https://github.com/blockmar/slackdown
|
||||
// Definitions by: nju33 <https://github.com/nju33>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function parse(text: string): string;
|
||||
6
types/slackdown/slackdown-tests.ts
Normal file
6
types/slackdown/slackdown-tests.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import * as slackdown from 'slackdown';
|
||||
// tslint:disable-next-line no-duplicate-imports
|
||||
import { parse } from 'slackdown';
|
||||
|
||||
slackdown.parse('xxx <http://xxxxx.jp|xxxxx.jp>');
|
||||
parse('xxx <http://xxxxx.jp|xxxxx.jp>');
|
||||
23
types/slackdown/tsconfig.json
Normal file
23
types/slackdown/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"slackdown-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/slackdown/tslint.json
Normal file
1
types/slackdown/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user