UNPKG

derw

Version:

An Elm-inspired language that transpiles to TypeScript

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