bananass
Version:
Baekjoon Framework for JavaScript.🍌
38 lines (28 loc) • 1.14 kB
JavaScript
/**
* @fileoverview `Testcases` type struct.
*/
// --------------------------------------------------------------------------------
// Import
// --------------------------------------------------------------------------------
import { array, nonempty } from 'superstruct';
import Testcase from '../testcase/index.js';
// --------------------------------------------------------------------------------
// Typedefs
// --------------------------------------------------------------------------------
/**
* @typedef {import('../../types.js').Testcases} Testcases
* @typedef {import('superstruct').Struct<Testcases>} TestcasesStruct
*/
// --------------------------------------------------------------------------------
// Type Struct
// --------------------------------------------------------------------------------
/**
* `Testcases` type struct.
*
* @type {TestcasesStruct}
*/
const Testcases = nonempty(array(Testcase));
// --------------------------------------------------------------------------------
// Export
// --------------------------------------------------------------------------------
export default Testcases;