UNPKG

derw

Version:

An Elm-inspired language that transpiles to TypeScript

11 lines (10 loc) 412 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isBuiltinType = isBuiltinType; exports.isReservedName = isReservedName; function isBuiltinType(potentialType) { return (["boolean", "number", "string", "void", "any", "Promise"].indexOf(potentialType) > -1); } function isReservedName(potentialName) { return ["Object", "Function"].indexOf(potentialName.trim()) > -1; }