27 lines
665 B
TypeScript
27 lines
665 B
TypeScript
export type WorksheetCategory = 'math' | 'focus' | 'chinese' | 'english' | 'puzzle' | 'craft';
|
|
export type DifficultyLevel = 'beginner' | 'basic' | 'intermediate' | 'advanced';
|
|
|
|
export interface WorksheetType {
|
|
id: string;
|
|
title: string;
|
|
desc: string;
|
|
category: WorksheetCategory;
|
|
page?: string;
|
|
subpackage?: string;
|
|
icon?: string;
|
|
img?: string;
|
|
ageRange?: [number, number];
|
|
difficulty?: DifficultyLevel;
|
|
mode?: string;
|
|
previewBg?: string;
|
|
previewText?: string;
|
|
}
|
|
|
|
export interface CategoryType {
|
|
id: WorksheetCategory;
|
|
name: string;
|
|
icon: string;
|
|
color: string;
|
|
gradient: [string, string];
|
|
}
|