diff --git a/types/slackdown/index.d.ts b/types/slackdown/index.d.ts new file mode 100644 index 0000000000..4086de7bf9 --- /dev/null +++ b/types/slackdown/index.d.ts @@ -0,0 +1,6 @@ +// Type definitions for slackdown 0.1 +// Project: https://github.com/blockmar/slackdown +// Definitions by: nju33 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function parse(text: string): string; diff --git a/types/slackdown/slackdown-tests.ts b/types/slackdown/slackdown-tests.ts new file mode 100644 index 0000000000..f04e88a218 --- /dev/null +++ b/types/slackdown/slackdown-tests.ts @@ -0,0 +1,3 @@ +import * as slackdown from 'slackdown'; + +slackdown.parse('xxx '); diff --git a/types/slackdown/tsconfig.json b/types/slackdown/tsconfig.json new file mode 100644 index 0000000000..0e630d9279 --- /dev/null +++ b/types/slackdown/tsconfig.json @@ -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" + ] +} diff --git a/types/slackdown/tslint.json b/types/slackdown/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/slackdown/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }