bananass
Version:
Baekjoon Framework for JavaScript.🍌
38 lines (29 loc) • 1.23 kB
JavaScript
/**
* @fileoverview `ConfigObjectBuild` type struct.
*/
// --------------------------------------------------------------------------------
// Import
// --------------------------------------------------------------------------------
import { boolean, enums, object, optional } from 'superstruct';
// --------------------------------------------------------------------------------
// Typedefs
// --------------------------------------------------------------------------------
/**
* @import { ConfigObjectBuild } from '../../types.js';
* @import { Struct } from 'superstruct';
*/
// --------------------------------------------------------------------------------
// Type Struct
// --------------------------------------------------------------------------------
/**
* `ConfigObjectBuild` type struct.
* @type {Struct<ConfigObjectBuild>}
*/ // @ts-expect-error -- TODO: migrate to `zod`
const ConfigObjectBuild = object({
clean: optional(boolean()),
templateType: optional(enums(['fs', 'rl'])),
});
// --------------------------------------------------------------------------------
// Export
// --------------------------------------------------------------------------------
export default ConfigObjectBuild;