@dvcol/neo-svelte
Version:
Neomorphic ui library for svelte 5
70 lines (69 loc) • 2.41 kB
TypeScript
export declare const NeoErrorType: {
readonly NeoError: "NeoError";
readonly NeoThemeProvider: "NeoThemeProvider";
readonly NeoList: "NeoList";
readonly NeoTab: "NeoTab";
readonly NeoCollapse: "NeoCollapse";
readonly NeoForm: "NeoForm";
readonly NeoProgress: "NeoProgress";
readonly NeoNotification: "NeoNotification";
};
export type NeoErrorTypes = (typeof NeoErrorType)[keyof typeof NeoErrorType];
export declare const NeoErrorName: {
readonly TargetNotFound: "Target not found";
readonly InvalidTarget: "Target is not a valid HTMLElement or ShadowRoot";
};
export declare class NeoError extends Error {
readonly type: NeoErrorTypes;
constructor(message: string, type?: NeoErrorTypes);
}
export declare class NeoErrorThemeProvider extends NeoError {
constructor(message: string);
}
export declare class NeoErrorThemeTargetNotFound extends NeoErrorThemeProvider {
constructor();
}
export declare class NeoErrorThemeInvalidTarget extends NeoErrorThemeProvider {
constructor();
}
export declare class NeoErrorThemeContextNotFound extends NeoErrorThemeProvider {
constructor();
}
export declare class NeoErrorListSelectDisabled extends NeoError {
constructor();
}
export declare class NeoErrorMissingId extends NeoError {
constructor(message: string | undefined, type: NeoErrorTypes);
}
export declare class NeoErrorMissingTabId extends NeoErrorMissingId {
constructor(message?: string);
}
export declare class NeoErrorMissingCollapseId extends NeoErrorMissingId {
constructor(message?: string);
}
export declare class NeoErrorFormMissingId extends NeoErrorMissingId {
constructor(message?: string);
}
export declare class NeoErrorFormDuplicateId extends NeoError {
constructor();
}
export declare class NeoErrorProgressContextNotFound extends NeoError {
constructor();
}
export declare class NeoErrorNotificationMissingId extends NeoError {
constructor();
}
export declare class NeoErrorNotificationNotFound extends NeoError {
readonly id?: string;
constructor(id?: string);
}
export declare class NeoErrorNotificationDuplicateId extends NeoError {
readonly id: string;
constructor(id: string);
}
export declare class NeoErrorNotificationProviderNotFound extends NeoError {
constructor();
}
export declare class NeoErrorNotificationServiceNotFound extends NeoError {
constructor(id?: string);
}