prepare for npm

This commit is contained in:
CismonX 2020-11-06 17:40:02 +08:00
parent 770bd49e49
commit 656a039a30
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
4 changed files with 8 additions and 8 deletions

2
index.ts Normal file
View File

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

4
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "type-unlambda",
"version": "0.1.0",
"name": "@esolangs/type-unlambda",
"version": "0.1.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "type-unlambda",
"version": "0.1.0",
"name": "@esolangs/type-unlambda",
"version": "0.1.1",
"description": "Unlambda interpreter implemented in TypeScript's type system",
"keywords": [
"Unlambda",

View File

@ -1,5 +1,5 @@
/**
* index.ts - Unlambda interpreter entry.
* unlambda.ts - Unlambda interpreter entry.
*
* @author CismonX <admin@cismon.net>
* @license MIT
@ -23,7 +23,5 @@ 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.
*/
type Unlambda<Code extends string, Input extends string = ''> =
export type Unlambda<Code extends string, Input extends string = ''> =
EvalResultOutput<Eval<ParseResultValue<Parse<Code>>, [], [Input, '', '']>>;
export default Unlambda;