13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
import type { Color } from '$lib/label/domain/entity/color';
|
|
import type { Label } from '$lib/label/domain/entity/label';
|
|
|
|
export interface LabelRepository {
|
|
getAllLabels(): Promise<Label[]>;
|
|
createLabel(params: CreateLabelParams): Promise<Label>;
|
|
}
|
|
|
|
export interface CreateLabelParams {
|
|
name: string;
|
|
color: Color;
|
|
}
|