@tmlmobilidade/types
Version:
18 lines (17 loc) • 850 B
TypeScript
import { z } from 'zod';
/**
* The GTFS Binary type represents a boolean value
* in the GTFS (General Transit Feed Specification) format.
* GTFS uses 0 and 1 to indicate either TRUE / FALSE or fields
* with binary states, such as direction or availability.
*/
export declare const GtfsBinarySchema: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
export type GtfsBinary = z.infer<typeof GtfsBinarySchema>;
/**
* The GTFS Ternary type represents a value that can be one of three states:
* 0 (NOT_SPECIFIED), 1 (YES), or 2 (NO). This is used in GTFS to indicate
* optional or unknown states for certain fields, such as whether a service
* is enabled, disabled, or unknown.
*/
export declare const GtfsTernarySchema: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>;
export type GtfsTernary = z.infer<typeof GtfsTernarySchema>;