phx-react
Version:
PHX REACT
25 lines (24 loc) • 1.17 kB
TypeScript
import { TDataTable } from './library-return-ticket/scan-to-return';
export declare const getValidBookCodeLength: (prefixCode: string) => number;
export declare const getCurrentDateTime: (date?: any) => string;
export declare const getRoleName: (userRoles: any) => any;
export declare const getProfile: (user: any) => any;
export declare const fomartBookCode: (code: string, qrPrefix: string) => string;
export declare const processBorrowBook: (arrBook: Array<TDataTable>, listBookState: Array<{
id: number;
code: string;
}>) => {
inBookshelfBookArray: Array<any>;
inWarehouseBookArray: Array<any>;
returnBorrowBook: Array<any>;
returnAllTicketIdArray: Array<any>;
};
export declare function getDateOffsetByDays(daysOffset: number, type?: 'default' | 'datePicker'): string;
export declare const sortClassroomByName: (arrayClass: Array<any>) => Array<any>;
export declare const formatDateMMDDYY: (date: string) => string;
export declare const triggerMessage: ({ message, type, isFailure, }: {
message?: string;
type: string;
isFailure?: boolean;
}) => void;
export declare const dateStrToDate: (date: string, char?: "-" | "/") => string;