UNPKG

monad-ts

Version:

Monad-ts is a small library implements some of key monads and way to chain them in a pipe (flow) in JavaScript and TypeScript. Angular 2+ compatible.

162 lines 3.17 kB
{ "type": "File", "start": 0, "end": 150, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 7, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 150, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 7, "column": 0 } }, "sourceType": "module", "body": [], "directives": [], "leadingComments": null, "innerComments": [ { "type": "CommentBlock", "value": "*\r\n * Pr<U> - type of returned values.\r\n * @public\r\n * @typedef {M<U> | U} Pr<U>\r\n ", "start": 0, "end": 87, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 3 } } }, { "type": "CommentLine", "value": "Copyright (c) 2017 Alex Tranchenko. All rights reserved. ", "start": 89, "end": 148, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 59 } } } ] }, "comments": [ { "type": "CommentBlock", "value": "*\r\n * Pr<U> - type of returned values.\r\n * @public\r\n * @typedef {M<U> | U} Pr<U>\r\n ", "start": 0, "end": 87, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 3 } } }, { "type": "CommentLine", "value": "Copyright (c) 2017 Alex Tranchenko. All rights reserved. ", "start": 89, "end": 148, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 59 } } } ], "tokens": [ { "type": "CommentBlock", "value": "*\r\n * Pr<U> - type of returned values.\r\n * @public\r\n * @typedef {M<U> | U} Pr<U>\r\n ", "start": 0, "end": 87, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 5, "column": 3 } } }, { "type": "CommentLine", "value": "Copyright (c) 2017 Alex Tranchenko. All rights reserved. ", "start": 89, "end": 148, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 59 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 150, "end": 150, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 0 } } } ] }