From c550b7ca959c8d41cd7d5850f68ae76997ce40a9 Mon Sep 17 00:00:00 2001 From: CismonX Date: Thu, 3 Jun 2021 20:22:30 +0800 Subject: [PATCH] Remove index.ts --- index.ts | 2 -- package.json | 3 ++- src/unlambda.ts | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 index.ts diff --git a/index.ts b/index.ts deleted file mode 100644 index 78f440d..0000000 --- a/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { Unlambda } from './src/unlambda'; -export default Unlambda; diff --git a/package.json b/package.json index 68f106f..c3bd7a4 100644 --- a/package.json +++ b/package.json @@ -22,5 +22,6 @@ }, "peerDependencies": { "typescript": "^4.1.2" - } + }, + "types": "src/unlambda.ts" } diff --git a/src/unlambda.ts b/src/unlambda.ts index 481c769..45dccc6 100644 --- a/src/unlambda.ts +++ b/src/unlambda.ts @@ -23,5 +23,7 @@ type EvalResultOutput = T extends [infer F, [infer I, infer O, infer C]] ? O * * Returns the output of program execution, or `never` if something went wrong. */ -export type Unlambda = +type Unlambda = EvalResultOutput>, [], [Input, '', '']>>; + +export default Unlambda;