Browse Source

prepare for npm

primary
CismonX 6 months ago
parent
commit
656a039a30
Signed by: CismonX GPG Key ID: 3094873E29A482FB
  1. 2
      index.ts
  2. 4
      package-lock.json
  3. 4
      package.json
  4. 6
      src/unlambda.ts

2
index.ts

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

4
package-lock.json

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

4
package.json

@ -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",

6
src/index.ts → src/unlambda.ts

@ -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;
Loading…
Cancel
Save