UNPKG

bananass

Version:

Baekjoon Framework for JavaScript.🍌

38 lines (29 loc) 1.22 kB
/** * @fileoverview `ConfigObjectConsole` type struct. */ // -------------------------------------------------------------------------------- // Import // -------------------------------------------------------------------------------- import { boolean, object, optional } from 'superstruct'; // -------------------------------------------------------------------------------- // Typedefs // -------------------------------------------------------------------------------- /** * @import { ConfigObjectConsole } from '../../types.js'; * @import { Struct } from 'superstruct'; */ // -------------------------------------------------------------------------------- // Type Struct // -------------------------------------------------------------------------------- /** * `ConfigObjectConsole` type struct. * @type {Struct<ConfigObjectConsole>} */ // @ts-expect-error -- TODO: migrate to `zod` const ConfigObjectConsole = object({ debug: optional(boolean()), quiet: optional(boolean()), }); // -------------------------------------------------------------------------------- // Export // -------------------------------------------------------------------------------- export default ConfigObjectConsole;