prepare for npm
This commit is contained in:
parent
770bd49e49
commit
656a039a30
|
@ -0,0 +1,2 @@
|
||||||
|
import { Unlambda } from './src/unlambda';
|
||||||
|
export default Unlambda;
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "type-unlambda",
|
"name": "@esolangs/type-unlambda",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "type-unlambda",
|
"name": "@esolangs/type-unlambda",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "Unlambda interpreter implemented in TypeScript's type system",
|
"description": "Unlambda interpreter implemented in TypeScript's type system",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Unlambda",
|
"Unlambda",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* index.ts - Unlambda interpreter entry.
|
* unlambda.ts - Unlambda interpreter entry.
|
||||||
*
|
*
|
||||||
* @author CismonX <admin@cismon.net>
|
* @author CismonX <admin@cismon.net>
|
||||||
* @license MIT
|
* @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.
|
* 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, '', '']>>;
|
EvalResultOutput<Eval<ParseResultValue<Parse<Code>>, [], [Input, '', '']>>;
|
||||||
|
|
||||||
export default Unlambda;
|
|
Loading…
Reference in New Issue