* draft * reordering * JIT Index stars on first load * test * Remove unused code on client * small unrefactor
12 lines
239 B
TypeScript
12 lines
239 B
TypeScript
import { Star } from "@server/models";
|
|
|
|
export default function present(star: Star) {
|
|
return {
|
|
id: star.id,
|
|
documentId: star.documentId,
|
|
index: star.index,
|
|
createdAt: star.createdAt,
|
|
updatedAt: star.updatedAt,
|
|
};
|
|
}
|