diff --git a/types/restore-cursor/index.d.ts b/types/restore-cursor/index.d.ts new file mode 100644 index 0000000000..5b30c48e9a --- /dev/null +++ b/types/restore-cursor/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for restore-cursor 2.0 +// Project: https://github.com/sindresorhus/restore-cursor#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = restoreCursor; + +declare function restoreCursor(): void; diff --git a/types/restore-cursor/restore-cursor-tests.ts b/types/restore-cursor/restore-cursor-tests.ts new file mode 100644 index 0000000000..c902968e84 --- /dev/null +++ b/types/restore-cursor/restore-cursor-tests.ts @@ -0,0 +1,3 @@ +import restoreCursor = require('restore-cursor'); + +restoreCursor(); diff --git a/types/restore-cursor/tsconfig.json b/types/restore-cursor/tsconfig.json new file mode 100644 index 0000000000..d9870e4ab9 --- /dev/null +++ b/types/restore-cursor/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", + "restore-cursor-tests.ts" + ] +} diff --git a/types/restore-cursor/tslint.json b/types/restore-cursor/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/restore-cursor/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }