@crazy-thursday/use-kfc
Version:
generate crazy thursday info hooks!
32 lines (31 loc) • 687 B
TypeScript
/**
* @description slogen item struct
*/
export declare type SlogenItem = {
/**
* @description slogen content message
*/
content: string;
/**
* @description slogen id to avoid repeat
*/
id: string | number;
};
export declare type Options<T> = {
/**
* @description is provide, slogen will random from this array
*/
slogenList: SlogenItem[];
/**
* @description manual refresh slogen
*/
refreshSignal?: T;
/**
* @description whether skip thursday check
*/
skipDayCheck?: boolean;
};
declare function useKFC<T = string | number>(options: Options<T>): {
slogen: string;
};
export default useKFC;