- 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
30 lines
1.4 KiB
TypeScript
30 lines
1.4 KiB
TypeScript
import type { brand } from "./generics.ts";
|
|
import type { CastableBase } from "./records.ts";
|
|
export declare class InternalArktypeError extends Error {
|
|
}
|
|
export declare const throwInternalError: (message: string) => never;
|
|
export declare const throwError: (message: string, ctor?: new (message: string) => Error) => never;
|
|
export declare class ParseError extends Error {
|
|
readonly name = "ParseError";
|
|
}
|
|
export declare const throwParseError: (message: string) => never;
|
|
/**
|
|
* TypeScript won't suggest strings beginning with a space as properties.
|
|
* Useful for symbol-like string properties.
|
|
*/
|
|
export declare const noSuggest: <s extends string>(s: s) => noSuggest<s>;
|
|
/**
|
|
* TypeScript won't suggest strings beginning with a space as properties.
|
|
* Useful for symbol-like string properties.
|
|
*/
|
|
export type noSuggest<s extends string = string> = ` ${s}`;
|
|
/** Unrendered character (U+200B) used to mark a string type */
|
|
export declare const ZeroWidthSpace = "\u200B";
|
|
/** Unrendered character (U+200B) used to mark a string type */
|
|
export type ZeroWidthSpace = typeof ZeroWidthSpace;
|
|
export type ErrorMessage<message extends string = string> = `${message}${ZeroWidthSpace}`;
|
|
export interface ErrorType<ctx extends {} = {}> extends CastableBase<ctx> {
|
|
[brand]: "ErrorType";
|
|
}
|
|
export type Completion<text extends string = string> = `${text}${ZeroWidthSpace}${ZeroWidthSpace}`;
|