Remove index.ts

This commit is contained in:
CismonX 2021-06-03 20:22:30 +08:00
parent 43c2e49984
commit c550b7ca95
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
3 changed files with 5 additions and 4 deletions

View File

@ -1,2 +0,0 @@
import { Unlambda } from './src/unlambda';
export default Unlambda;

View File

@ -22,5 +22,6 @@
}, },
"peerDependencies": { "peerDependencies": {
"typescript": "^4.1.2" "typescript": "^4.1.2"
} },
"types": "src/unlambda.ts"
} }

View File

@ -23,5 +23,7 @@ type EvalResultOutput<T> = T extends [infer F, [infer I, infer O, infer C]] ? O
* *
* Returns the output of program execution, or `never` if something went wrong. * Returns the output of program execution, or `never` if something went wrong.
*/ */
export type Unlambda<Code extends string, Input extends string = ''> = type Unlambda<Code extends string, Input extends string = ''> =
EvalResultOutput<Eval<ParseResultValue<Parse<Code>>, [], [Input, '', '']>>; EvalResultOutput<Eval<ParseResultValue<Parse<Code>>, [], [Input, '', '']>>;
export default Unlambda;