UNPKG

vue-ts-types

Version:

Lightweight TypeScript-first Vue prop type definitions

12 lines (11 loc) 317 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isSymbol = void 0; /** Validator that only allows symbols. */ const isSymbol = (value) => { if (typeof value !== 'symbol') { return 'value should be a symbol'; } return undefined; }; exports.isSymbol = isSymbol;