mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
17 lines
359 B
TypeScript
17 lines
359 B
TypeScript
import { z } from "zod";
|
|
|
|
export interface RubricItem {
|
|
label: string;
|
|
points: number;
|
|
}
|
|
|
|
export const zodRubricItem = z.object({
|
|
label: z.string(),
|
|
points: z.number(),
|
|
});
|
|
|
|
export const rubricItemIsExtraCredit = (item: RubricItem) => {
|
|
const extraCredit = "(extra credit)";
|
|
return item.label.toLowerCase().includes(extraCredit.toLowerCase());
|
|
};
|