@koalarx/ui
Version:
Koala UI is a modern and accessible component library designed to speed up interface development in Angular projects. With simple integration and clear documentation, you can easily build robust and visually appealing applications.
38 lines (34 loc) • 850 B
TypeScript
interface GetManyResult<T> {
items: T[];
count: number;
}
type QueryPaginationDirection = 'asc' | 'desc';
interface SortFilterType {
orderBy?: string;
direction?: QueryPaginationDirection;
}
interface QueryPagination extends SortFilterType {
page?: number;
limit?: number;
}
interface AuthConfig {
storageTokenKey: string;
storageRefreshTokenKey: string;
homeRoute?: string;
loginRoute?: string;
userInfo: {
url: string;
};
refreshToken: {
url: string;
data: {
tokenKeyName: string;
refreshTokenKeyName?: string;
};
response: {
accessTokenKeyName: string;
refreshTokenKeyName: string;
};
};
}
export type { AuthConfig, GetManyResult, QueryPagination, QueryPaginationDirection, SortFilterType };