File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ import { Unit } from "./unit.ts" ;
2+ import { PlainText } from "./plainText.ts" ;
3+
4+ /** Anchor埋め込み */
5+ export interface Anchor {
6+ type : "anchor" ;
7+
8+ /** 構文解析結果 */
9+ unit : AnchorUnit ;
10+
11+ /** the same as `unit.content` */
12+ children : PlainText ;
13+ }
14+
15+ export interface AnchorUnit extends Unit {
16+ /** Anchor video ID */
17+ videoId : string ;
18+ }
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ import { Youtube } from "./youtube.ts";
1818import { Vimeo } from "./vimeo.ts" ;
1919import { Audio } from "./audio.ts" ;
2020import { AudioLink } from "./audioLink.ts" ;
21+ import { Spotify } from "./spotify.ts" ;
22+ import { Anchor } from "./anchor.ts" ;
2123import { GoogleMap } from "./googleMap.ts" ;
2224import { Indent } from "./indent.ts" ;
2325
@@ -45,6 +47,8 @@ export type NodeWithoutIndent =
4547 | Video
4648 | Audio
4749 | AudioLink
50+ | Spotify
51+ | Anchor
4852 | Youtube
4953 | Vimeo
5054 | GoogleMap ;
Original file line number Diff line number Diff line change 1+ import { Unit } from "./unit.ts" ;
2+ import { PlainText } from "./plainText.ts" ;
3+
4+ /** Spotify埋め込み */
5+ export interface Spotify {
6+ type : "spotify" ;
7+
8+ /** 構文解析結果 */
9+ unit : SpotifyUnit ;
10+
11+ /** the same as `unit.content` */
12+ children : PlainText ;
13+ }
14+
15+ export interface SpotifyUnit extends Unit {
16+ /** Spotify video ID */
17+ videoId : string ;
18+
19+ params : SpotifyParams ;
20+ }
21+
22+ export interface SpotifyParams {
23+ /** Spotifyのカテゴリ */
24+ type : "track" | "artist" | "playlist" | "album" | "episode" | "show" ;
25+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { PlainText } from "./plainText.ts";
44/** Youtube埋め込み */
55export interface Youtube {
66 type : "youtube" ;
7+
78 /** 構文解析結果 */
89 unit : YoutubeUnit & ( VideoId | ListId ) ;
910
You can’t perform that action at this time.
0 commit comments