UNPKG

bananass

Version:

Baekjoon Framework for JavaScript.🍌

36 lines (27 loc) 1.1 kB
/** * @fileoverview `Testcases` type struct. */ // -------------------------------------------------------------------------------- // Import // -------------------------------------------------------------------------------- import { array, nonempty } from 'superstruct'; import Testcase from '../testcase/index.js'; // -------------------------------------------------------------------------------- // Typedefs // -------------------------------------------------------------------------------- /** * @import { Testcases } from '../../types.js'; * @import { Struct } from 'superstruct'; */ // -------------------------------------------------------------------------------- // Type Struct // -------------------------------------------------------------------------------- /** * `Testcases` type struct. * @type {Struct<Testcases>} */ const Testcases = nonempty(array(Testcase)); // -------------------------------------------------------------------------------- // Export // -------------------------------------------------------------------------------- export default Testcases;