Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
26 lines
2.2 KiB
Plaintext
26 lines
2.2 KiB
Plaintext
import type { MarkOptional } from 'ts-essentials';
|
|
import type { DateField, DateFieldClient } from '../../fields/config/types.js';
|
|
import type { DateFieldValidation } from '../../fields/validations.js';
|
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
import type { ClientFieldBase, FieldClientComponent, FieldPaths, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldDiffClientComponent, FieldDiffServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
type DateFieldClientWithoutType = MarkOptional<DateFieldClient, 'type'>;
|
|
type DateFieldBaseClientProps = {
|
|
readonly path: string;
|
|
readonly validate?: DateFieldValidation;
|
|
};
|
|
type DateFieldBaseServerProps = Pick<FieldPaths, 'path'>;
|
|
export type DateFieldClientProps = ClientFieldBase<DateFieldClientWithoutType> & DateFieldBaseClientProps;
|
|
export type DateFieldServerProps = DateFieldBaseServerProps & ServerFieldBase<DateField, DateFieldClientWithoutType>;
|
|
export type DateFieldServerComponent = FieldServerComponent<DateField, DateFieldClientWithoutType, DateFieldBaseServerProps>;
|
|
export type DateFieldClientComponent = FieldClientComponent<DateFieldClientWithoutType, DateFieldBaseClientProps>;
|
|
export type DateFieldLabelServerComponent = FieldLabelServerComponent<DateField, DateFieldClientWithoutType>;
|
|
export type DateFieldLabelClientComponent = FieldLabelClientComponent<DateFieldClientWithoutType>;
|
|
export type DateFieldDescriptionServerComponent = FieldDescriptionServerComponent<DateField, DateFieldClientWithoutType>;
|
|
export type DateFieldDescriptionClientComponent = FieldDescriptionClientComponent<DateFieldClientWithoutType>;
|
|
export type DateFieldErrorServerComponent = FieldErrorServerComponent<DateField, DateFieldClientWithoutType>;
|
|
export type DateFieldErrorClientComponent = FieldErrorClientComponent<DateFieldClientWithoutType>;
|
|
export type DateFieldDiffServerComponent = FieldDiffServerComponent<DateField, DateFieldClient>;
|
|
export type DateFieldDiffClientComponent = FieldDiffClientComponent<DateFieldClient>;
|
|
export {};
|
|
//# sourceMappingURL=Date.d.ts.map |