- 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
109 lines
2.8 KiB
TypeScript
109 lines
2.8 KiB
TypeScript
import type * as Types from "./Types.js";
|
|
/**
|
|
* @since 2.0.0
|
|
* @category symbols
|
|
*/
|
|
export declare const UpstreamPullRequestTypeId: unique symbol;
|
|
/**
|
|
* @since 2.0.0
|
|
* @category symbols
|
|
*/
|
|
export type UpstreamPullRequestTypeId = typeof UpstreamPullRequestTypeId;
|
|
/**
|
|
* @since 2.0.0
|
|
* @category models
|
|
*/
|
|
export type UpstreamPullRequest<A> = Pulled<A> | NoUpstream;
|
|
/**
|
|
* @since 2.0.0
|
|
*/
|
|
export declare namespace UpstreamPullRequest {
|
|
/**
|
|
* @since 2.0.0
|
|
* @category models
|
|
*/
|
|
interface Variance<out A> {
|
|
readonly [UpstreamPullRequestTypeId]: {
|
|
readonly _A: Types.Covariant<A>;
|
|
};
|
|
}
|
|
}
|
|
/**
|
|
* @since 2.0.0
|
|
* @category models
|
|
*/
|
|
export interface Pulled<out A> extends UpstreamPullRequest.Variance<A> {
|
|
readonly _tag: "Pulled";
|
|
readonly value: A;
|
|
}
|
|
/**
|
|
* @since 2.0.0
|
|
* @category models
|
|
*/
|
|
export interface NoUpstream extends UpstreamPullRequest.Variance<never> {
|
|
readonly _tag: "NoUpstream";
|
|
readonly activeDownstreamCount: number;
|
|
}
|
|
/**
|
|
* @since 2.0.0
|
|
* @category constructors
|
|
*/
|
|
export declare const Pulled: <A>(value: A) => UpstreamPullRequest<A>;
|
|
/**
|
|
* @since 2.0.0
|
|
* @category constructors
|
|
*/
|
|
export declare const NoUpstream: (activeDownstreamCount: number) => UpstreamPullRequest<never>;
|
|
/**
|
|
* Returns `true` if the specified value is an `UpstreamPullRequest`, `false`
|
|
* otherwise.
|
|
*
|
|
* @since 2.0.0
|
|
* @category refinements
|
|
*/
|
|
export declare const isUpstreamPullRequest: (u: unknown) => u is UpstreamPullRequest<unknown>;
|
|
/**
|
|
* Returns `true` if the specified `UpstreamPullRequest` is a `Pulled`, `false`
|
|
* otherwise.
|
|
*
|
|
* @since 2.0.0
|
|
* @category refinements
|
|
*/
|
|
export declare const isPulled: <A>(self: UpstreamPullRequest<A>) => self is Pulled<A>;
|
|
/**
|
|
* Returns `true` if the specified `UpstreamPullRequest` is a `NoUpstream`,
|
|
* `false` otherwise.
|
|
*
|
|
* @since 2.0.0
|
|
* @category refinements
|
|
*/
|
|
export declare const isNoUpstream: <A>(self: UpstreamPullRequest<A>) => self is NoUpstream;
|
|
/**
|
|
* Folds an `UpstreamPullRequest<A>` into a value of type `Z`.
|
|
*
|
|
* @since 2.0.0
|
|
* @category folding
|
|
*/
|
|
export declare const match: {
|
|
/**
|
|
* Folds an `UpstreamPullRequest<A>` into a value of type `Z`.
|
|
*
|
|
* @since 2.0.0
|
|
* @category folding
|
|
*/
|
|
<A, Z>(options: {
|
|
readonly onPulled: (value: A) => Z;
|
|
readonly onNoUpstream: (activeDownstreamCount: number) => Z;
|
|
}): (self: UpstreamPullRequest<A>) => Z;
|
|
/**
|
|
* Folds an `UpstreamPullRequest<A>` into a value of type `Z`.
|
|
*
|
|
* @since 2.0.0
|
|
* @category folding
|
|
*/
|
|
<A, Z>(self: UpstreamPullRequest<A>, options: {
|
|
readonly onPulled: (value: A) => Z;
|
|
readonly onNoUpstream: (activeDownstreamCount: number) => Z;
|
|
}): Z;
|
|
};
|
|
//# sourceMappingURL=UpstreamPullRequest.d.ts.map
|