timetable-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

schema.ts (439B)


      1 import { array, length, string } from 'valibot';
      2 
      3 import type { Output, SafeParseResult } from 'valibot';
      4 
      5 // 転置前
      6 export const InputSchema = array(
      7 	array(string(), [length(24, '横24列のデータを入力してください')]),
      8 	[length(34, '縦34行のデータを入力してください')],
      9 );
     10 
     11 export type InputSchema = Output<typeof InputSchema>;
     12 export type InputSchemaSafeParseResult = SafeParseResult<typeof InputSchema>;