main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
788 bytes
|
Rev | Line | |
---|
[d565449] | 1 | // Generated by LiveScript 1.6.0
|
---|
| 2 | (function(){
|
---|
| 3 | var parseString, cast, parseType, VERSION, parsedTypeParse, parse;
|
---|
| 4 | parseString = require('./parse-string');
|
---|
| 5 | cast = require('./cast');
|
---|
| 6 | parseType = require('type-check').parseType;
|
---|
| 7 | VERSION = '0.4.1';
|
---|
| 8 | parsedTypeParse = function(parsedType, string, options){
|
---|
| 9 | options == null && (options = {});
|
---|
| 10 | options.explicit == null && (options.explicit = false);
|
---|
| 11 | options.customTypes == null && (options.customTypes = {});
|
---|
| 12 | return cast(parseString(parsedType, string, options), parsedType, options);
|
---|
| 13 | };
|
---|
| 14 | parse = function(type, string, options){
|
---|
| 15 | return parsedTypeParse(parseType(type), string, options);
|
---|
| 16 | };
|
---|
| 17 | module.exports = {
|
---|
| 18 | VERSION: VERSION,
|
---|
| 19 | parse: parse,
|
---|
| 20 | parsedTypeParse: parsedTypeParse
|
---|
| 21 | };
|
---|
| 22 | }).call(this);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.