add types/slackdown

This commit is contained in:
nju33
2018-02-18 14:54:12 +09:00
parent 628c63919c
commit cbb60b8699
4 changed files with 36 additions and 0 deletions

6
types/slackdown/index.d.ts vendored Normal file
View 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;

View 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>');

View 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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }