UNPKG

bananass

Version:

Baekjoon Framework for JavaScript.🍌

36 lines (27 loc) 1.1 kB
/** * @fileoverview `Output` type struct. */ // -------------------------------------------------------------------------------- // Import // -------------------------------------------------------------------------------- import { boolean, number, string, union } from 'superstruct'; // -------------------------------------------------------------------------------- // Typedefs // -------------------------------------------------------------------------------- /** * @typedef {import('../../types.js').Output} Output * @typedef {import('superstruct').Struct<Output>} OutputStruct */ // -------------------------------------------------------------------------------- // Type Struct // -------------------------------------------------------------------------------- /** * `Output` type struct. * * @type {OutputStruct} */ const Output = union([string(), number(), boolean()]); // -------------------------------------------------------------------------------- // Export // -------------------------------------------------------------------------------- export default Output;