Files
headroom/frontend/node_modules/sveltekit-superforms/dist/jsonSchema/schemaInfo.d.ts
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

23 lines
919 B
TypeScript

import type { JSONSchema7, JSONSchema7Definition, JSONSchema7TypeName } from 'json-schema';
export type SchemaType = JSONSchema7TypeName | 'Date' | 'date' | 'unix-time' | 'bigint' | 'int64' | 'any' | 'symbol' | 'set' | 'map' | 'null' | 'undefined' | 'stringbool';
export type SchemaInfo = {
types: Exclude<SchemaType, 'null'>[];
isOptional: boolean;
isNullable: boolean;
schema: JSONSchema7;
union?: JSONSchema7[];
array?: JSONSchema7[];
properties?: {
[key: string]: JSONSchema7;
};
additionalProperties?: {
[key: string]: JSONSchema7;
};
required?: string[];
};
/**
* Normalizes the different kind of schema variations (anyOf, oneOf, union, const null, etc)
* to figure out the field type, optional, nullable, etc.
*/
export declare function schemaInfo(schema: JSONSchema7Definition, isOptional: boolean, path: (string | number | symbol)[]): SchemaInfo;