UNPKG

bananass

Version:

Baekjoon Framework for JavaScript.🍌

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