Skip to content

Types

Saved-clip types.

Interfaces

Clip

Defined in: src/shared/clips/types.ts:18

A saved clip (/profiles/clips).

Properties

Property Type Defined in
breakdown ClipBreakdown src/shared/clips/types.ts:24
clip_url string src/shared/clips/types.ts:21
end_time number src/shared/clips/types.ts:23
file_id string src/shared/clips/types.ts:20
id string src/shared/clips/types.ts:19
start_time number src/shared/clips/types.ts:22

ClipBreakdown

Defined in: src/shared/clips/types.ts:11

The breakdown payload stored with a saved clip: the focused word + its explanation + the sentence it came from (the Anki export reads all three).

Properties

Property Type Defined in
explanation string src/shared/clips/types.ts:13
focus EnrichedJapaneseWord | null src/shared/clips/types.ts:12
sentence string src/shared/clips/types.ts:14

SaveClipResponse

Defined in: src/shared/clips/types.ts:28

Response from the clip-save endpoint.

Properties

Property Type Defined in
clip_id string src/shared/clips/types.ts:29
clip_url string src/shared/clips/types.ts:31
file_id string src/shared/clips/types.ts:30